Skip to content

Commit

Permalink
Switched to existing Complex_Selector_Compare functor, instead of usi…
Browse files Browse the repository at this point in the history
…ng std::function
  • Loading branch information
mgonzalez999 committed Jun 5, 2015
1 parent 0514d01 commit 60cc9fc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 60cc9fc

Please sign in to comment.