Przeglądaj źródła

Remove proto2 check from generator

Sydney Acksman 6 lat temu
rodzic
commit
4be0394686

+ 1 - 1
src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc

@@ -59,7 +59,7 @@ void SourceGeneratorBase::WriteGeneratedCodeAttributes(io::Printer* printer) {
 }
 
 std::string SourceGeneratorBase::class_access_level() {
-  return (IsDescriptorProto(descriptor_) || this->options()->internal_access) ? "internal" : "public";
+  return this->options()->internal_access ? "internal" : "public";
 }
 
 const Options* SourceGeneratorBase::options() {