[Scummvm-cvs-logs] SF.net SVN: scummvm: [30843] scummvm/trunk/engines/parallaction/defs.h
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Sun Feb 10 01:03:19 CET 2008
Revision: 30843
http://scummvm.svn.sourceforge.net/scummvm/?rev=30843&view=rev
Author: peres001
Date: 2008-02-09 16:03:19 -0800 (Sat, 09 Feb 2008)
Log Message:
-----------
Cleanup ManagedList.
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/defs.h
Modified: scummvm/trunk/engines/parallaction/defs.h
===================================================================
--- scummvm/trunk/engines/parallaction/defs.h 2008-02-09 23:31:04 UTC (rev 30842)
+++ scummvm/trunk/engines/parallaction/defs.h 2008-02-10 00:03:19 UTC (rev 30843)
@@ -41,8 +41,6 @@
typedef typename Common::List<T> Common_List;
typedef typename Common::List<T>::iterator iterator;
- typedef int (*CompareFunction) (const T& a, const T& b);
-
~ManagedList() {
clear();
}
@@ -63,18 +61,6 @@
return Common_List::erase(first, last);
}
- // keeps list ordered in *ascending* order, as expressed by the compare function
- void insertSorted(const T& element, CompareFunction compare) {
- iterator it = Common_List::begin();
- for ( ; it != Common_List::end(); it++)
- if (compare(element, *it) < 0) break;
-
- if (it == Common_List::end())
- Common_List::push_back(element);
- else
- Common_List::insert(it, element);
- }
-
};
} // namespace Parallaction
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