diff --git a/src/google/protobuf/compiler/rust/naming.cc b/src/google/protobuf/compiler/rust/naming.cc index 78d96b8393..a0dfb961b6 100644 --- a/src/google/protobuf/compiler/rust/naming.cc +++ b/src/google/protobuf/compiler/rust/naming.cc @@ -153,10 +153,6 @@ std::string ThunkName(Context& ctx, const Descriptor& msg, op); } -std::string VTableName(const FieldDescriptor& field) { - return absl::StrCat("__", absl::AsciiStrToUpper(field.name()), "_VTABLE"); -} - template std::string GetFullyQualifiedPath(Context& ctx, const Desc& desc) { auto rel_path = GetCrateRelativeQualifiedPath(ctx, desc); diff --git a/src/google/protobuf/compiler/rust/naming.h b/src/google/protobuf/compiler/rust/naming.h index 70eebe1b64..4f6632688f 100644 --- a/src/google/protobuf/compiler/rust/naming.h +++ b/src/google/protobuf/compiler/rust/naming.h @@ -38,9 +38,6 @@ std::string RawMapThunk(Context& ctx, const Descriptor& msg, std::string RawMapThunk(Context& ctx, const EnumDescriptor& desc, absl::string_view key_t, absl::string_view op); -// Returns the local constant that defines the vtable for mutating `field`. -std::string VTableName(const FieldDescriptor& field); - // Returns an absolute path to the Proxied Rust type of the given field. // The absolute path is guaranteed to work in the crate that defines the field. // It may be crate-relative, or directly reference the owning crate of the type.