Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3921)

Unified Diff: base/memory/ref_counted_memory.cc

Issue 1550963002: Remove RefCountedMallocedMemory, it's not used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/memory/ref_counted_memory.h ('k') | base/memory/ref_counted_memory_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « base/memory/ref_counted_memory.h ('k') | base/memory/ref_counted_memory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698