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

Unified Diff: media/base/data_buffer.cc

Issue 10837118: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 months 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
Index: media/base/data_buffer.cc
diff --git a/media/base/data_buffer.cc b/media/base/data_buffer.cc
index eaafa69a99ec41a86026095b8ec2d9b50747277c..28ca491eb61ce2b96c248ccc728675db8283a9d0 100644
--- a/media/base/data_buffer.cc
+++ b/media/base/data_buffer.cc
@@ -43,11 +43,6 @@ void DataBuffer::Initialize() {
data_.reset(new uint8[buffer_size_]);
}
-scoped_refptr<DataBuffer> DataBuffer::CopyFrom(const uint8* data,
- int data_size) {
- return make_scoped_refptr(new DataBuffer(data, data_size));
-}
-
const uint8* DataBuffer::GetData() const {
return data_.get();
}

Powered by Google App Engine
This is Rietveld 408576698