Parcourir la source

remove commented out code

Jan Tattermusch il y a 5 ans
Parent
commit
e346fde63b

+ 0 - 9
csharp/src/Google.Protobuf/Collections/MapField.cs

@@ -474,15 +474,6 @@ namespace Google.Protobuf.Collections
             {
                 ctx.CopyStateTo(output);
             }
-
-            //var message = new Codec.MessageAdapter(codec);
-            //foreach (var entry in list)
-            //{
-            //    message.Key = entry.Key;
-            //    message.Value = entry.Value;
-            //    output.WriteTag(codec.MapTag);
-            //    output.WriteMessage(message);
-            //}
         }
 
         /// <summary>

+ 0 - 32
csharp/src/Google.Protobuf/Collections/RepeatedField.cs

@@ -216,38 +216,6 @@ namespace Google.Protobuf.Collections
             {
                 ctx.CopyStateTo(output);
             }
-
-            //if (count == 0)
-            //{
-            //    return;
-            //}
-            //var writer = codec.ValueWriter;
-            //var tag = codec.Tag;
-            //if (codec.PackedRepeatedField)
-            //{
-            //    // Packed primitive type
-            //    int size = CalculatePackedDataSize(codec);
-            //    output.WriteTag(tag);
-            //    output.WriteLength(size);
-            //    for (int i = 0; i < count; i++)
-            //    {
-            //        writer(output, array[i]);
-            //    }
-            //}
-            //else
-            //{
-            //    // Not packed: a simple tag/value pair for each value.
-            //    // Can't use codec.WriteTagAndValue, as that omits default values.
-            //    for (int i = 0; i < count; i++)
-            //    {
-            //        output.WriteTag(tag);
-            //        writer(output, array[i]);
-            //        if (codec.EndTag != 0)
-            //        {
-            //            output.WriteTag(codec.EndTag);
-            //        }
-            //    }
-            //}
         }
 
         /// <summary>

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

@@ -355,11 +355,6 @@ namespace Google.Protobuf
             {
                 ctx.CopyStateTo(stream);
             }
-
-            // foreach (var value in ValuesByNumber.Values)
-            // {
-            //     value.WriteTo(stream);
-            // }
         }
 
         /// <summary>

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

@@ -181,11 +181,6 @@ namespace Google.Protobuf
             }
         }
 
-        //public void MergeFrom(CodedInputStream input)
-        //{
-        //    field.AddEntriesFrom(input, codec);
-        //}
-
         public void MergeFrom(ref ParseContext ctx)
         {
             field.AddEntriesFrom(ref ctx, codec);

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

@@ -81,11 +81,6 @@ namespace Google.Protobuf
             {
                 ctx.CopyStateTo(output);
             }
-
-            //foreach (KeyValuePair<int, UnknownField> entry in fields)
-            //{
-            //    entry.Value.WriteTo(entry.Key, output);
-            //}
         }
 
         /// <summary>