aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorNicola Mettifogo2008-02-10 00:03:19 +0000
committerNicola Mettifogo2008-02-10 00:03:19 +0000
commitcb6fb6200d207ab4b5c3e30539365762f9fbf6ac (patch)
tree9150d482d74a66c36a9614b329fe5d89a06e5d4a /engines/parallaction
parentbd4a2f721ef08f7fbf71c6048252e50121544425 (diff)
downloadscummvm-rg350-cb6fb6200d207ab4b5c3e30539365762f9fbf6ac.tar.gz
scummvm-rg350-cb6fb6200d207ab4b5c3e30539365762f9fbf6ac.tar.bz2
scummvm-rg350-cb6fb6200d207ab4b5c3e30539365762f9fbf6ac.zip
Cleanup ManagedList.
svn-id: r30843
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/defs.h14
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