remove unused internal method

pull/7351/head
Jan Tattermusch 5 years ago
parent 7f42d7c65b
commit 556cb8dc4b
  1. 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)
{

Loading…
Cancel
Save