From cb6fb6200d207ab4b5c3e30539365762f9fbf6ac Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Sun, 10 Feb 2008 00:03:19 +0000 Subject: Cleanup ManagedList. svn-id: r30843 --- engines/parallaction/defs.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'engines/parallaction') 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 Common_List; typedef typename Common::List::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 -- cgit v1.2.3