Remove unused `HasTopLevelEnums` function

This will address the following compilation error:

```
src/google/protobuf/compiler/python/python_generator.cc:95:13: warning: unused function 'HasTopLevelEnums' [-Wunused-function]
```
pull/9738/head
Roni Lichtman 3 years ago committed by GitHub
parent 1e60bd62ed
commit 75dd25b0fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/google/protobuf/compiler/python/generator.cc

@ -90,12 +90,6 @@ std::string ModuleAlias(const std::string& filename) {
// in proto2/public/reflection.py.
const char kDescriptorKey[] = "DESCRIPTOR";
// Does the file have top-level enums?
inline bool HasTopLevelEnums(const FileDescriptor* file) {
return file->enum_type_count() > 0;
}
// file output by this generator.
void PrintTopBoilerplate(io::Printer* printer, const FileDescriptor* file,
bool descriptor_proto) {

Loading…
Cancel
Save