Просмотр исходного кода

Remove unneeded exception methods

Chris Bacon 5 лет назад
Родитель
Сommit
d22eaded5c
1 измененных файлов с 1 добавлено и 16 удалено
  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).");
-        }
-    }
+}
 }