Index: base/memory/ref_counted_memory.cc |
diff --git a/base/memory/ref_counted_memory.cc b/base/memory/ref_counted_memory.cc |
index 477c941355c23660b77961d1b775fa4f8e45aa8f..b50e234c67498762274ef30f389f8144ad86bbe4 100644 |
--- a/base/memory/ref_counted_memory.cc |
+++ b/base/memory/ref_counted_memory.cc |
@@ -4,8 +4,6 @@ |
#include "base/memory/ref_counted_memory.h" |
-#include <stdlib.h> |
- |
#include "base/logging.h" |
namespace base { |
@@ -79,22 +77,4 @@ size_t RefCountedString::size() const { |
return data_.size(); |
} |
-RefCountedMallocedMemory::RefCountedMallocedMemory( |
- void* data, size_t length) |
- : data_(reinterpret_cast<unsigned char*>(data)), length_(length) { |
- DCHECK(data || length == 0); |
-} |
- |
-const unsigned char* RefCountedMallocedMemory::front() const { |
- return length_ ? data_ : NULL; |
-} |
- |
-size_t RefCountedMallocedMemory::size() const { |
- return length_; |
-} |
- |
-RefCountedMallocedMemory::~RefCountedMallocedMemory() { |
- free(data_); |
-} |
- |
} // namespace base |