Skip to content

Commit ac9a285

Browse files
committed
RequirementMachine: Remove bogus pre-sorting pass
1 parent 40e3409 commit ac9a285

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/AST/RequirementMachine/RewriteSystem.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -895,12 +895,6 @@ void RewriteSystem::initialize(
895895
ProtocolGraph &&graph) {
896896
Protos = graph;
897897

898-
// FIXME: Probably this sort is not necessary
899-
std::sort(rules.begin(), rules.end(),
900-
[&](std::pair<MutableTerm, MutableTerm> lhs,
901-
std::pair<MutableTerm, MutableTerm> rhs) -> int {
902-
return lhs.first.compare(rhs.first, graph) < 0;
903-
});
904898
for (const auto &rule : rules)
905899
addRule(rule.first, rule.second);
906900
}

0 commit comments

Comments
 (0)