浏览代码

Merge pull request #1088 from jskeet/codec-pruning

Remove unused method in FieldCodec.
Jan Tattermusch 9 年之前
父节点
当前提交
698f61688c
共有 1 个文件被更改,包括 0 次插入5 次删除
  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;