Explorar o código

Remove the customized operator delete.

liujisi@google.com %!s(int64=13) %!d(string=hai) anos
pai
achega
5e6539205e
Modificáronse 1 ficheiros con 0 adicións e 8 borrados
  1. 0 8
      src/google/protobuf/dynamic_message.cc

+ 0 - 8
src/google/protobuf/dynamic_message.cc

@@ -208,14 +208,6 @@ class DynamicMessage : public Message {
 
 
   Metadata GetMetadata() const;
   Metadata GetMetadata() const;
 
 
-  // We actually allocate more memory than sizeof(*this) when this
-  // class's memory is allocated via the global operator new. Thus, we need to
-  // manually call the global operator delete. Calling the destructor is taken
-  // care of for us.
-  static void operator delete(void* ptr) {
-    ::operator delete(ptr);
-  }
-
  private:
  private:
   GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(DynamicMessage);
   GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(DynamicMessage);