From da5e11b605673ca08116f42ef3609b1f770389d9 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Wed, 10 Apr 2019 11:06:34 -0700 Subject: [PATCH] Remove unused constants When compiling protobuf these produce warnings --- src/google/protobuf/compiler/cpp/cpp_helpers.cc | 1 - src/google/protobuf/compiler/java/java_helpers.cc | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/google/protobuf/compiler/cpp/cpp_helpers.cc b/src/google/protobuf/compiler/cpp/cpp_helpers.cc index 4225dc0da5..ef787234b8 100644 --- a/src/google/protobuf/compiler/cpp/cpp_helpers.cc +++ b/src/google/protobuf/compiler/cpp/cpp_helpers.cc @@ -66,7 +66,6 @@ namespace { static const char kAnyMessageName[] = "Any"; static const char kAnyProtoFile[] = "google/protobuf/any.proto"; -static const char kGoogleProtobufPrefix[] = "google/protobuf/"; std::string DotsToColons(const std::string& name) { return StringReplace(name, ".", "::", true); diff --git a/src/google/protobuf/compiler/java/java_helpers.cc b/src/google/protobuf/compiler/java/java_helpers.cc index 6e52b1dc38..4ff288061d 100644 --- a/src/google/protobuf/compiler/java/java_helpers.cc +++ b/src/google/protobuf/compiler/java/java_helpers.cc @@ -91,8 +91,6 @@ const std::unordered_set* kReservedNames = "transient", "try", "void", "volatile", "while", }); -const int kDefaultLookUpStartFieldNumber = 40; - bool IsForbidden(const std::string& field_name) { for (int i = 0; i < GOOGLE_ARRAYSIZE(kForbiddenWordList); ++i) { if (field_name == kForbiddenWordList[i]) {