diff --git a/hpb_generator/gen_enums.cc b/hpb_generator/gen_enums.cc index 8c3f5c2807605..eaba47164e87e 100644 --- a/hpb_generator/gen_enums.cc +++ b/hpb_generator/gen_enums.cc @@ -111,12 +111,5 @@ void WriteEnumDeclarations( } } -void WriteHeaderEnumForwardDecls( - std::vector& enums, Output& output) { - for (const auto* enumdesc : enums) { - output("enum $0 : int;\n", EnumTypeName(enumdesc)); - } -} - } // namespace protobuf } // namespace google::hpb_generator diff --git a/hpb_generator/gen_enums.h b/hpb_generator/gen_enums.h index 63455833950fe..bbe475c726669 100644 --- a/hpb_generator/gen_enums.h +++ b/hpb_generator/gen_enums.h @@ -19,8 +19,6 @@ std::string EnumTypeName(const protobuf::EnumDescriptor* enum_descriptor); std::string EnumValueSymbolInNameSpace( const protobuf::EnumDescriptor* desc, const protobuf::EnumValueDescriptor* value); -void WriteHeaderEnumForwardDecls( - std::vector& enums, Output& output); void WriteEnumDeclarations( const std::vector& enums, Output& output);