From ee62875d499615fedb3940a479062447cab1ffb0 Mon Sep 17 00:00:00 2001 From: Trevor Pilley Date: Mon, 20 Nov 2023 11:47:44 +0000 Subject: [PATCH] Remove obsolete constructor --- src/PhoneNumbers/ParseException.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/PhoneNumbers/ParseException.cs b/src/PhoneNumbers/ParseException.cs index c90b7f536..87513a67e 100644 --- a/src/PhoneNumbers/ParseException.cs +++ b/src/PhoneNumbers/ParseException.cs @@ -5,7 +5,6 @@ namespace PhoneNumbers; /// /// An exception thrown when there is an issue parsing a phone number. /// -[Serializable] [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public class ParseException : Exception { @@ -34,14 +33,4 @@ public ParseException(string? message, Exception? innerException) : base(message, innerException) { } - - /// - /// Initializes a new instance of the class. - /// - /// The that holds the serialized object data about the exception being thrown. - /// The that contains contextual information about the source or destination. - protected ParseException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } }