Skip to content

Commit

Permalink
deterministic_hash: remove unused string in protobuf reflectionHashMe…
Browse files Browse the repository at this point in the history
…ssage (envoyproxy#34757)

remove unused variable

Signed-off-by: Boteng Yao <[email protected]>
  • Loading branch information
botengyao authored Jun 18, 2024
1 parent 396b54d commit 68a7c73
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion source/common/protobuf/deterministic_hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ std::unique_ptr<Protobuf::Message> 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);
Expand Down

0 comments on commit 68a7c73

Please sign in to comment.