Removed unused OneofMutEnumRsName function

PiperOrigin-RevId: 616858530
pull/16159/head
Protobuf Team Bot 10 months ago committed by Copybara-Service
parent dde9c5eee8
commit 0299edd5e4
  1. 4
      src/google/protobuf/compiler/rust/naming.cc
  2. 1
      src/google/protobuf/compiler/rust/naming.h

@ -316,10 +316,6 @@ std::string OneofViewEnumRsName(const OneofDescriptor& oneof) {
return RsSafeName(SnakeToUpperCamelCase(oneof.name()));
}
std::string OneofMutEnumRsName(const OneofDescriptor& oneof) {
return SnakeToUpperCamelCase(oneof.name()) + "Mut";
}
std::string OneofCaseEnumRsName(const OneofDescriptor& oneof) {
// Note: This is the name used for the cpp Case enum, we use it for both
// the Rust Case enum as well as for the cpp case enum in the cpp thunk.

@ -50,7 +50,6 @@ std::string EnumRsName(const EnumDescriptor& desc);
std::string EnumValueRsName(const EnumValueDescriptor& value);
std::string OneofViewEnumRsName(const OneofDescriptor& oneof);
std::string OneofMutEnumRsName(const OneofDescriptor& oneof);
std::string OneofCaseEnumRsName(const OneofDescriptor& oneof);
std::string OneofCaseRsName(const FieldDescriptor& oneof_field);

Loading…
Cancel
Save