소스 검색

Remove proto2 check from generator

Sydney Acksman 6 년 전
부모
커밋
4be0394686
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc

+ 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() {