diff options
author | Steve Block <steveblock@google.com> | 2009-12-22 16:09:29 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2009-12-22 16:09:29 +0000 |
commit | f10741666f912a79243950d07c8738ac4813710a (patch) | |
tree | 4f377a236cfc526223b80ceb3ef3e5321fd1607b /WebCore | |
parent | 36f687f9f79b594e08a1fb84059d381521f58949 (diff) | |
download | external_webkit-f10741666f912a79243950d07c8738ac4813710a.zip external_webkit-f10741666f912a79243950d07c8738ac4813710a.tar.gz external_webkit-f10741666f912a79243950d07c8738ac4813710a.tar.bz2 |
Android special-casing when using std::sort is no longer needed now that we use STLPort.
Change-Id: I9ca01b71637457f9e84384f5dd748f141c13c3b0
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/bindings/v8/V8GCController.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/WebCore/bindings/v8/V8GCController.cpp b/WebCore/bindings/v8/V8GCController.cpp index e08cf66..b478636 100644 --- a/WebCore/bindings/v8/V8GCController.cpp +++ b/WebCore/bindings/v8/V8GCController.cpp @@ -239,16 +239,6 @@ bool operator<(const GrouperItem& a, const GrouperItem& b) typedef Vector<GrouperItem> GrouperList; -#if PLATFORM(ANDROID) -// Android's implementation of std::sort seems unable to do the necessary -// template matching to pick up operator< for GrouperItem, so we have to -// manually pass a comparison function. -static bool compareGrouperItem(const GrouperItem& a, const GrouperItem& b) -{ - return a < b; -} -#endif - class ObjectGrouperVisitor : public DOMWrapperMap<Node>::Visitor { public: ObjectGrouperVisitor() @@ -295,11 +285,7 @@ public: void applyGrouping() { // Group by sorting by the group id. -#if PLATFORM(ANDROID) - std::sort(m_grouper.begin(), m_grouper.end(), compareGrouperItem); -#else std::sort(m_grouper.begin(), m_grouper.end()); -#endif // FIXME Should probably work in iterators here, but indexes were easier for my simple mind. for (size_t i = 0; i < m_grouper.size(); ) { |