Ver código fonte

Merge pull request #1088 from jskeet/codec-pruning

Remove unused method in FieldCodec.
Jan Tattermusch 9 anos atrás
pai
commit
698f61688c
1 arquivos alterados com 0 adições e 5 exclusões
  1. 0 5
      csharp/src/Google.Protobuf/FieldCodec.cs

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

@@ -354,11 +354,6 @@ namespace Google.Protobuf
             // Otherwise it's the default value of the CLR type
         }
 
-        private static Func<T, bool> CreateDefaultValueCheck<TTmp>(Func<TTmp, bool> check)
-        {
-            return (Func<T, bool>)(object)check;
-        }
-
         private readonly Func<CodedInputStream, T> reader;
         private readonly Action<CodedOutputStream, T> writer;
         private readonly Func<T, int> sizeCalculator;