Remove unused constants

When compiling protobuf these produce warnings
pull/6033/head
Keith Smiley 6 years ago committed by Adam Cozzette
parent 7db639f924
commit da5e11b605
  1. 1
      src/google/protobuf/compiler/cpp/cpp_helpers.cc
  2. 2
      src/google/protobuf/compiler/java/java_helpers.cc

@ -66,7 +66,6 @@ namespace {
static const char kAnyMessageName[] = "Any"; static const char kAnyMessageName[] = "Any";
static const char kAnyProtoFile[] = "google/protobuf/any.proto"; static const char kAnyProtoFile[] = "google/protobuf/any.proto";
static const char kGoogleProtobufPrefix[] = "google/protobuf/";
std::string DotsToColons(const std::string& name) { std::string DotsToColons(const std::string& name) {
return StringReplace(name, ".", "::", true); return StringReplace(name, ".", "::", true);

@ -91,8 +91,6 @@ const std::unordered_set<string>* kReservedNames =
"transient", "try", "void", "volatile", "while", "transient", "try", "void", "volatile", "while",
}); });
const int kDefaultLookUpStartFieldNumber = 40;
bool IsForbidden(const std::string& field_name) { bool IsForbidden(const std::string& field_name) {
for (int i = 0; i < GOOGLE_ARRAYSIZE(kForbiddenWordList); ++i) { for (int i = 0; i < GOOGLE_ARRAYSIZE(kForbiddenWordList); ++i) {
if (field_name == kForbiddenWordList[i]) { if (field_name == kForbiddenWordList[i]) {

Loading…
Cancel
Save