Index: src/core/SkStream.cpp |
diff --git a/src/core/SkStream.cpp b/src/core/SkStream.cpp |
index b04bc162d2b96221f2e98b37ead8f6746ef6419a..e290b2158099593376ac57ee7839136dea11ffc6 100644 |
--- a/src/core/SkStream.cpp |
+++ b/src/core/SkStream.cpp |
@@ -64,17 +64,6 @@ size_t SkStream::readPackedUInt() { |
} |
} |
-SkData* SkStream::readData() { |
- size_t size = this->readU32(); |
- if (0 == size) { |
- return SkData::NewEmpty(); |
- } else { |
- SkData* data = SkData::NewUninitialized(size); |
- this->read(data->writable_data(), size); |
- return data; |
- } |
-} |
- |
////////////////////////////////////////////////////////////////////////////////////// |
SkWStream::~SkWStream() |
@@ -189,16 +178,6 @@ bool SkWStream::writeStream(SkStream* stream, size_t length) { |
return true; |
} |
-bool SkWStream::writeData(const SkData* data) { |
- if (data) { |
- this->write32(SkToU32(data->size())); |
- this->write(data->data(), data->size()); |
- } else { |
- this->write32(0); |
- } |
- return true; |
-} |
- |
/////////////////////////////////////////////////////////////////////////////// |
SkFILEStream::SkFILEStream(const char file[]) : fName(file), fOwnership(kCallerPasses_Ownership) { |