diff options
author | Nicola Mettifogo | 2008-02-10 00:03:19 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-02-10 00:03:19 +0000 |
commit | cb6fb6200d207ab4b5c3e30539365762f9fbf6ac (patch) | |
tree | 9150d482d74a66c36a9614b329fe5d89a06e5d4a /engines | |
parent | bd4a2f721ef08f7fbf71c6048252e50121544425 (diff) | |
download | scummvm-rg350-cb6fb6200d207ab4b5c3e30539365762f9fbf6ac.tar.gz scummvm-rg350-cb6fb6200d207ab4b5c3e30539365762f9fbf6ac.tar.bz2 scummvm-rg350-cb6fb6200d207ab4b5c3e30539365762f9fbf6ac.zip |
Cleanup ManagedList.
svn-id: r30843
Diffstat (limited to 'engines')
-rw-r--r-- | engines/parallaction/defs.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/engines/parallaction/defs.h b/engines/parallaction/defs.h index c8ae3bc2d7..42c7ad22e4 100644 --- a/engines/parallaction/defs.h +++ b/engines/parallaction/defs.h @@ -41,8 +41,6 @@ public: 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 @@ public: 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 |