remove commented out code

pull/7576/head
Jan Tattermusch 5 years ago
parent c06812b0b2
commit e346fde63b
  1. 9
      csharp/src/Google.Protobuf/Collections/MapField.cs
  2. 32
      csharp/src/Google.Protobuf/Collections/RepeatedField.cs
  3. 5
      csharp/src/Google.Protobuf/ExtensionSet.cs
  4. 5
      csharp/src/Google.Protobuf/ExtensionValue.cs
  5. 5
      csharp/src/Google.Protobuf/UnknownFieldSet.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>

@ -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>

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

@ -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);

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

Loading…
Cancel
Save