diff options
author | Kenneth Heafield <github@kheafield.com> | 2015-04-10 16:36:57 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2015-04-10 16:36:57 +0300 |
commit | d6a66d39bd3631401c5977ae508e5c7a44e65359 (patch) | |
tree | 951fefc19abc242822b4c78f358803f361237371 /mert/FileStream.cpp | |
parent | b8793fb78871f90b2626b55455ab3a804a49330a (diff) |
Delete unused code
Diffstat (limited to 'mert/FileStream.cpp')
-rw-r--r-- | mert/FileStream.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/mert/FileStream.cpp b/mert/FileStream.cpp index 800ce1bfe..3d908de4f 100644 --- a/mert/FileStream.cpp +++ b/mert/FileStream.cpp @@ -40,28 +40,3 @@ inputfilestream::~inputfilestream() void inputfilestream::close() { } - -outputfilestream::outputfilestream(const std::string &filePath) - : std::ostream(0), m_streambuf(0), m_is_good(false) -{ - // check if file is readable - std::filebuf* fb = new std::filebuf(); - m_is_good = (fb->open(filePath.c_str(), std::ios::out) != NULL); - - if (IsGzipFile(filePath)) { - throw runtime_error("Output to a zipped file not supported!"); - } else { - m_streambuf = fb; - } - this->init(m_streambuf); -} - -outputfilestream::~outputfilestream() -{ - delete m_streambuf; - m_streambuf = 0; -} - -void outputfilestream::close() -{ -} |