diff options
author | Jie Luo <anandolee@gmail.com> | 2015-05-01 11:20:50 -0700 |
---|---|---|
committer | Jie Luo <jieluo@google.com> | 2015-05-01 14:08:23 -0700 |
commit | d9e3063eb054503a98f8ef74fe0484c0f12210ea (patch) | |
tree | 7d8bb3b42ef7bc3562aaa23379f10833ae861520 /src/google/protobuf/compiler/csharp/csharp_message.cc | |
parent | ea48104cddf9dba8a7e525eebbccfe98fd1e1eff (diff) |
Remove ClsCompliant declarations from C# code
Diffstat (limited to 'src/google/protobuf/compiler/csharp/csharp_message.cc')
-rw-r--r-- | src/google/protobuf/compiler/csharp/csharp_message.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_message.cc b/src/google/protobuf/compiler/csharp/csharp_message.cc index 36f41c70..96f7c17c 100644 --- a/src/google/protobuf/compiler/csharp/csharp_message.cc +++ b/src/google/protobuf/compiler/csharp/csharp_message.cc @@ -262,11 +262,6 @@ void MessageGenerator::Generate(Writer* writer) { for (int i = 0; i < descriptor_->field_count(); i++) { const FieldDescriptor* fieldDescriptor = descriptor_->field(i); - // TODO(jtattermusch): same code for cls compliance is in csharp_extension - if (cls_compliance() - && GetFieldConstantName(fieldDescriptor)[0] == '_') { - writer->WriteLine("[global::System.CLSCompliant(false)]"); - } // Rats: we lose the debug comment here :( writer->WriteLine("public const int $0$ = $1$;", |