Commit 0b6d39ac authored by Jon Skeet's avatar Jon Skeet

Remove unused variable.

parent 92b0aaa0
......@@ -58,8 +58,6 @@ namespace Google.ProtocolBuffers {
}
private static void Print(IMessage message, TextGenerator generator) {
// TODO(jonskeet): Check why descriptor is never used.
MessageDescriptor descriptor = message.DescriptorForType;
foreach (KeyValuePair<FieldDescriptor, object> entry in message.AllFields) {
PrintField(entry.Key, entry.Value, generator);
}
......
......@@ -91,7 +91,6 @@ public final class TextFormat {
private static void print(Message message, TextGenerator generator)
throws IOException {
Descriptor descriptor = message.getDescriptorForType();
for (Map.Entry<FieldDescriptor, Object> field :
message.getAllFields().entrySet()) {
printField(field.getKey(), field.getValue(), generator);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment