[Scummvm-cvs-logs] SF.net SVN: scummvm: [31645] scummvm/trunk/common/func.h
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Mon Apr 21 19:07:57 CEST 2008
Revision: 31645
http://scummvm.svn.sourceforge.net/scummvm/?rev=31645&view=rev
Author: fingolfin
Date: 2008-04-21 10:07:57 -0700 (Mon, 21 Apr 2008)
Log Message:
-----------
Removed some dead code
Modified Paths:
--------------
scummvm/trunk/common/func.h
Modified: scummvm/trunk/common/func.h
===================================================================
--- scummvm/trunk/common/func.h 2008-04-21 16:52:09 UTC (rev 31644)
+++ scummvm/trunk/common/func.h 2008-04-21 17:07:57 UTC (rev 31645)
@@ -201,52 +201,6 @@
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>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list