Removed left-over commented code

pull/288/head
csharptest 14 years ago committed by rogerk
parent b5ba93bf3c
commit 541686c89f
  1. 7
      src/ProtoGen/MessageGenerator.cs

@ -704,13 +704,6 @@ namespace Google.ProtocolBuffers.ProtoGen
writer.WriteLine("switch (tag) {"); writer.WriteLine("switch (tag) {");
writer.Indent(); writer.Indent();
writer.WriteLine("case 0: {"); // 0 signals EOF / limit reached writer.WriteLine("case 0: {"); // 0 signals EOF / limit reached
//if (!UseLiteRuntime)
//{
// writer.WriteLine(" if (unknownFields != null) {");
// writer.WriteLine(" this.UnknownFields = unknownFields.Build();");
// writer.WriteLine(" }");
//}
//writer.WriteLine(" return this;");
writer.WriteLine(" throw pb::InvalidProtocolBufferException.InvalidTag();"); writer.WriteLine(" throw pb::InvalidProtocolBufferException.InvalidTag();");
writer.WriteLine("}"); writer.WriteLine("}");
writer.WriteLine("default: {"); writer.WriteLine("default: {");

Loading…
Cancel
Save