From 9eca3fed2e61ca8776ab2420d47ccdf3cc6b52f1 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Thu, 26 Feb 2015 11:41:15 +0000 Subject: [PATCH] Dead code elimination. --- re2c/stream_lc.h | 56 ------------------------------------------------ 1 file changed, 56 deletions(-) diff --git a/re2c/stream_lc.h b/re2c/stream_lc.h index feb3475e..90b114f3 100755 --- a/re2c/stream_lc.h +++ b/re2c/stream_lc.h @@ -15,52 +15,6 @@ namespace re2c { -template > -class basic_null_streambuf - : public std::basic_streambuf<_E, _Tr> -{ -public: - basic_null_streambuf() - : std::basic_streambuf<_E, _Tr>() - { - } -}; - -typedef basic_null_streambuf null_streambuf; - -template > -class basic_null_stream - : public std::basic_ostream<_E, _Tr> -{ -public: - basic_null_stream() - : std::basic_ostream<_E, _Tr>(null_buf = new basic_null_streambuf<_E, _Tr>()) - { - } - - virtual ~basic_null_stream() - { - delete null_buf; - } - - basic_null_stream& put(_E) - { - // nothing to do - return *this; - } - - basic_null_stream& write(const _E *, std::streamsize) - { - // nothing to do - return *this; - } - -protected: - basic_null_streambuf<_E, _Tr> * null_buf; -}; - -typedef basic_null_stream null_stream; - class line_number { public: @@ -363,14 +317,6 @@ protected: mutable _Mybuf *mybuf; }; -template > -class basic_ofstream_lc - : public basic_fstream_lc<_E, std::basic_ostream<_E, _Tr>, std::ios_base::out, _Tr> -{ -}; - -typedef basic_ofstream_lc ofstream_lc; - template > class basic_ifstream_lc : public basic_fstream_lc<_E, std::basic_istream<_E, _Tr>, std::ios_base::in, _Tr> @@ -431,8 +377,6 @@ public: const line_number* ln; }; -std::ostream& operator << (std::ostream& o, const file_info& li); - } // end namespace re2c #endif /* _stream_lc_h */ -- 2.40.0