Remove dead VTableName function.

PiperOrigin-RevId: 633999639
pull/16855/head
Protobuf Team Bot 7 months ago committed by Copybara-Service
parent 5fdef5bfce
commit cfea7596c1
  1. 4
      src/google/protobuf/compiler/rust/naming.cc
  2. 3
      src/google/protobuf/compiler/rust/naming.h

@ -153,10 +153,6 @@ std::string ThunkName(Context& ctx, const Descriptor& msg,
op); op);
} }
std::string VTableName(const FieldDescriptor& field) {
return absl::StrCat("__", absl::AsciiStrToUpper(field.name()), "_VTABLE");
}
template <typename Desc> template <typename Desc>
std::string GetFullyQualifiedPath(Context& ctx, const Desc& desc) { std::string GetFullyQualifiedPath(Context& ctx, const Desc& desc) {
auto rel_path = GetCrateRelativeQualifiedPath(ctx, desc); auto rel_path = GetCrateRelativeQualifiedPath(ctx, desc);

@ -38,9 +38,6 @@ std::string RawMapThunk(Context& ctx, const Descriptor& msg,
std::string RawMapThunk(Context& ctx, const EnumDescriptor& desc, std::string RawMapThunk(Context& ctx, const EnumDescriptor& desc,
absl::string_view key_t, absl::string_view op); 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. // 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. // 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. // It may be crate-relative, or directly reference the owning crate of the type.

Loading…
Cancel
Save