diff options
author | vng <viktor.govako@gmail.com> | 2013-04-07 20:19:58 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:52:56 +0300 |
commit | 379bbb65fa950f0feec58d6e62a67a6363cb9dc8 (patch) | |
tree | c0b139d0505f7685ff3be1f91617e748eb128601 /coding/byte_stream.hpp | |
parent | 8bb0b1fba73b89b88d4862a648835a0781d4f3a9 (diff) |
Remove useless code.
Diffstat (limited to 'coding/byte_stream.hpp')
-rw-r--r-- | coding/byte_stream.hpp | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/coding/byte_stream.hpp b/coding/byte_stream.hpp index 45ad0eef5d..077b58d5d5 100644 --- a/coding/byte_stream.hpp +++ b/coding/byte_stream.hpp @@ -38,30 +38,7 @@ template <class StorageT> class PushBackByteSink { public: explicit PushBackByteSink(StorageT & storage) - : m_Storage(storage)//, m_InitialStorageSize(storage.size()) - { - } - - void Write(void const * p, size_t size) - { - // assume input buffer as buffer of bytes - unsigned char const * pp = static_cast<unsigned char const *>(p); - m_Storage.append(pp, pp + size); - } - - size_t Pos() const - { - return m_Storage.size(); - } -private: - StorageT & m_Storage; -}; - -template <typename T> class PushBackByteSink<vector<T> > -{ -public: - explicit PushBackByteSink(vector<T> & storage) - : m_Storage(storage)//, m_InitialStorageSize(storage.size()) + : m_Storage(storage) { } @@ -77,7 +54,7 @@ public: return m_Storage.size(); } private: - vector<T> & m_Storage; + StorageT & m_Storage; }; class CountingSink |