diff options
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 |