hpb: delete dead code in gen_enums

`WriteHeaderEnumForwardDecls` was never used.

PiperOrigin-RevId: 683639510
pull/18644/head
Hong Shin 4 months ago committed by Copybara-Service
parent be9eb4bccf
commit 6690ab42d8
  1. 7
      hpb_generator/gen_enums.cc
  2. 2
      hpb_generator/gen_enums.h

@ -111,12 +111,5 @@ void WriteEnumDeclarations(
}
}
void WriteHeaderEnumForwardDecls(
std::vector<const protobuf::EnumDescriptor*>& enums, Output& output) {
for (const auto* enumdesc : enums) {
output("enum $0 : int;\n", EnumTypeName(enumdesc));
}
}
} // namespace protobuf
} // namespace google::hpb_generator

@ -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<const protobuf::EnumDescriptor*>& enums, Output& output);
void WriteEnumDeclarations(
const std::vector<const protobuf::EnumDescriptor*>& enums, Output& output);

Loading…
Cancel
Save