Commit 5e653920 authored by liujisi@google.com's avatar liujisi@google.com

Remove the customized operator delete.

parent a655b981
...@@ -208,14 +208,6 @@ class DynamicMessage : public Message { ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment