Merge pull request #9738 from ronilichtman/patch-1

Remove unused `HasTopLevelEnums` function
This commit is contained in:
Matt Fowles Kulukundis 2022-04-05 12:40:03 -04:00 committed by GitHub
commit 205117c44b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {