Explorar o código

Remove unneeded exception methods

Chris Bacon %!s(int64=5) %!d(string=hai) anos
pai
achega
859ccb90df
Modificáronse 1 ficheiros con 1 adicións e 16 borrados
  1. 1 16
      csharp/src/Google.Protobuf/InvalidProtocolBufferException.cs

+ 1 - 16
csharp/src/Google.Protobuf/InvalidProtocolBufferException.cs

@@ -136,20 +136,5 @@ namespace Google.Protobuf
         {
             return new InvalidProtocolBufferException("Message was missing required fields");
         }
-
-        internal static InvalidProtocolBufferException InvalidWrapperMessageLength()
-        {
-            return new InvalidProtocolBufferException("Wrapper type message length is incorrect.");
-        }
-
-        internal static InvalidProtocolBufferException InvalidWrapperMessageTag()
-        {
-            return new InvalidProtocolBufferException("Wrapper type message tag is incorrect.");
-        }
-
-        internal static InvalidProtocolBufferException InvalidWrapperMessageExtraFields()
-        {
-            return new InvalidProtocolBufferException("Wrapper type message contains invalid extra field(s).");
-        }
-    }
+}
 }