Browse Source

remove unused internal method

Jan Tattermusch 5 years ago
parent
commit
556cb8dc4b
1 changed files with 0 additions and 25 deletions
  1. 0 25
      csharp/src/Google.Protobuf/FieldCodec.cs

+ 0 - 25
csharp/src/Google.Protobuf/FieldCodec.cs

@@ -590,31 +590,6 @@ namespace Google.Protobuf
                 return (ValueReader<T?>)value;
             }
 
-            internal static T Read<T>(CodedInputStream input, FieldCodec<T> codec)
-            {
-                int length = input.ReadLength();
-                int oldLimit = input.PushLimit(length);
-
-                uint tag;
-                T value = codec.DefaultValue;
-                while ((tag = input.ReadTag()) != 0)
-                {
-                    if (tag == codec.Tag)
-                    {
-                        value = codec.Read(input);
-                    }
-                    else
-                    {
-                        input.SkipLastField();
-                    }
-
-                }
-                input.CheckReadEndOfStreamTag();
-                input.PopLimit(oldLimit);
-
-                return value;
-            }
-
             [SecuritySafeCritical]
             internal static T Read<T>(ref ParseContext ctx, FieldCodec<T> codec)
             {