From 7834dbf820080330e346a3c7e448efa3e58cc1af Mon Sep 17 00:00:00 2001 From: Brian Silverman Date: Mon, 29 Oct 2018 16:45:07 -0700 Subject: [PATCH] Remove unused types They're not doing anything, so might as well get rid of them. --- src/google/protobuf/extension_set.cc | 2 +- src/google/protobuf/stubs/common.cc | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/google/protobuf/extension_set.cc b/src/google/protobuf/extension_set.cc index 6629ec0424..ff2fc35641 100644 --- a/src/google/protobuf/extension_set.cc +++ b/src/google/protobuf/extension_set.cc @@ -280,7 +280,7 @@ void ExtensionSet::ClearExtension(int number) { namespace { -enum Cardinality { +enum { REPEATED, OPTIONAL }; diff --git a/src/google/protobuf/stubs/common.cc b/src/google/protobuf/stubs/common.cc index 7c17d97278..f1a688dc11 100644 --- a/src/google/protobuf/stubs/common.cc +++ b/src/google/protobuf/stubs/common.cc @@ -342,7 +342,6 @@ uint32 ghtonl(uint32 x) { namespace internal { -typedef void OnShutdownFunc(); struct ShutdownData { ~ShutdownData() { std::reverse(functions.begin(), functions.end());