diff options
author | Max Horn | 2008-04-21 17:07:57 +0000 |
---|---|---|
committer | Max Horn | 2008-04-21 17:07:57 +0000 |
commit | e9abc1b1917c5cec2d66923a58d1151407fe2675 (patch) | |
tree | 95efb9f4307af3c70501deaabeaba4d0c04aad33 | |
parent | 4e62a13a67dc499ed0b73c7b19f6f2bb3257b865 (diff) | |
download | scummvm-rg350-e9abc1b1917c5cec2d66923a58d1151407fe2675.tar.gz scummvm-rg350-e9abc1b1917c5cec2d66923a58d1151407fe2675.tar.bz2 scummvm-rg350-e9abc1b1917c5cec2d66923a58d1151407fe2675.zip |
Removed some dead code
svn-id: r31645
-rw-r--r-- | common/func.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/common/func.h b/common/func.h index c2e1d0763e..fa8f0d2151 100644 --- a/common/func.h +++ b/common/func.h @@ -201,52 +201,6 @@ inline ConstMemFunc1<Result, Arg, T> mem_fun(Result (T::*f)(Arg) const) { return ConstMemFunc1<Result, Arg, T>(f); } -template<class Cont> -class BackInsertIterator { -private: - Cont *_container; - -public: - BackInsertIterator(Cont &c) : _container(&c) {} - - BackInsertIterator &operator =(const typename Cont::value_type &v) { - _container->push_back(v); - return *this; - } - - BackInsertIterator &operator *() { return *this; } - BackInsertIterator &operator ++() { return *this; } - BackInsertIterator operator ++(int) { return *this; } -}; - -template<class Cont> -BackInsertIterator<Cont> back_inserter(Cont &c) { - return BackInsertIterator<Cont>(c); -} - -template<class Cont> -class FrontInsertIterator { -private: - Cont *_container; - -public: - FrontInsertIterator(Cont &c) : _container(&c) {} - - FrontInsertIterator &operator =(const typename Cont::value_type &v) { - _container->push_front(v); - return *this; - } - - FrontInsertIterator &operator *() { return *this; } - FrontInsertIterator &operator ++() { return *this; } - FrontInsertIterator operator ++(int) { return *this; } -}; - -template<class Cont> -FrontInsertIterator<Cont> front_inserter(Cont &c) { - return FrontInsertIterator<Cont>(c); -} - // functor code template<class Res> |