From 60cc9fcdc1aee754cf4e5aac991d3baa39084760 Mon Sep 17 00:00:00 2001 From: supermario Date: Fri, 5 Jun 2015 10:45:03 -0700 Subject: [PATCH] Switched to existing Complex_Selector_Compare functor, instead of using std::function --- node.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/node.cpp b/node.cpp index 153dcee14c..c963f4cbb7 100644 --- a/node.cpp +++ b/node.cpp @@ -254,10 +254,7 @@ namespace Sass { Node result = Node::createCollection(); To_String to_string; - std::set< Complex_Selector*, std::function< bool(Complex_Selector*, Complex_Selector*) > > sel_set([&] ( Complex_Selector* lhs, Complex_Selector* rhs ) { - bool result = lhs->perform(&to_string) < rhs->perform(&to_string); - return result; - } ); + std::set< Complex_Selector*, Complex_Selector_Pointer_Compare > sel_set; // Add all selectors we don't already have, everything else just add it blindly for (NodeDeque::iterator seqsesIter = seqses.collection()->begin(), seqsesIterEnd = seqses.collection()->end(); seqsesIter != seqsesIterEnd; ++seqsesIter) {