From 68a7c7320f6bce33de7c9d6799757f2bba13b304 Mon Sep 17 00:00:00 2001 From: botengyao Date: Tue, 18 Jun 2024 10:19:27 -0400 Subject: [PATCH] deterministic_hash: remove unused string in protobuf reflectionHashMessage (#34757) remove unused variable Signed-off-by: Boteng Yao --- source/common/protobuf/deterministic_hash.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/source/common/protobuf/deterministic_hash.cc b/source/common/protobuf/deterministic_hash.cc index 52e18c553297..a1c500609e06 100644 --- a/source/common/protobuf/deterministic_hash.cc +++ b/source/common/protobuf/deterministic_hash.cc @@ -196,7 +196,6 @@ std::unique_ptr unpackAnyForReflection(const ProtobufWkt::Any // This is intentionally ignoring unknown fields. uint64_t reflectionHashMessage(const Protobuf::Message& message, uint64_t seed) { using Protobuf::FieldDescriptor; - std::string scratch; const Protobuf::Reflection* reflection = message.GetReflection(); const Protobuf::Descriptor* descriptor = message.GetDescriptor(); seed = HashUtil::xxHash64(descriptor->full_name(), seed);