Selaa lähdekoodia

Remove unused types

They're not doing anything, so might as well get rid of them.
Brian Silverman 7 vuotta sitten
vanhempi
commit
7834dbf820
2 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 1
      src/google/protobuf/extension_set.cc
  2. 0 1
      src/google/protobuf/stubs/common.cc

+ 1 - 1
src/google/protobuf/extension_set.cc

@@ -280,7 +280,7 @@ void ExtensionSet::ClearExtension(int number) {
 
 namespace {
 
-enum Cardinality {
+enum {
   REPEATED,
   OPTIONAL
 };

+ 0 - 1
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());