Explorar o código

Remove two unused functions.

Nico Weber %!s(int64=10) %!d(string=hai) anos
pai
achega
58b2decb7b
Modificáronse 2 ficheiros con 0 adicións e 16 borrados
  1. 0 7
      src/google/protobuf/stubs/strutil.cc
  2. 0 9
      src/google/protobuf/wire_format.cc

+ 0 - 7
src/google/protobuf/stubs/strutil.cc

@@ -872,13 +872,6 @@ char *FastHex32ToBuffer(uint32 value, char* buffer) {
   return InternalFastHexToBuffer(value, buffer, 8);
 }
 
-static inline char* PlaceNum(char* p, int num, char prev_sep) {
-   *p-- = '0' + num % 10;
-   *p-- = '0' + num / 10;
-   *p-- = prev_sep;
-   return p;
-}
-
 // ----------------------------------------------------------------------
 // FastInt32ToBufferLeft()
 // FastUInt32ToBufferLeft()

+ 0 - 9
src/google/protobuf/wire_format.cc

@@ -54,15 +54,6 @@ namespace google {
 namespace protobuf {
 namespace internal {
 
-namespace {
-
-// This function turns out to be convenient when using some macros later.
-inline int GetEnumNumber(const EnumValueDescriptor* descriptor) {
-  return descriptor->number();
-}
-
-}  // anonymous namespace
-
 // ===================================================================
 
 bool UnknownFieldSetFieldSkipper::SkipField(