浏览代码

Remove unneeded exception methods

Chris Bacon 6 年之前
父节点
当前提交
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).");
-        }
-    }
+}
 }