aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/parallaction/defs.h')
-rw-r--r--engines/parallaction/defs.h25
1 files changed, 1 insertions, 24 deletions
diff --git a/engines/parallaction/defs.h b/engines/parallaction/defs.h
index 2f78ec6133..c8ae3bc2d7 100644
--- a/engines/parallaction/defs.h
+++ b/engines/parallaction/defs.h
@@ -75,30 +75,6 @@ public:
Common_List::insert(it, element);
}
- // FIXME: this routine is a copy of the sort routine that can be found in common/func.cpp
- // That wasn't usable because the 'less than' operator was hardcoded. Any comments or
- // suggestions are welcome.
- void sort(CompareFunction compare) {
- iterator first = Common_List::begin();
- iterator last = Common_List::end();
-
- if (first == last)
- return;
-
- // Simple selection sort
- iterator i(first);
- for (; i != last; ++i) {
- iterator minElem(i);
- iterator j(i);
- ++j;
- for (; j != last; ++j)
- if (compare(*j, *minElem) < 0)
- minElem = j;
- if (minElem != i)
- SWAP(*minElem, *i);
- }
- }
-
};
} // namespace Parallaction
@@ -110,3 +86,4 @@ public:
+