Skip to content

Commit 2923a33

Browse files
committed
RequirementMachine: Remove unused method
1 parent 7ad0c3c commit 2923a33

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

lib/AST/RequirementMachine/RewriteSystem.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,6 @@ void RewriteSystem::initialize(
7979
addRule(rule.first, rule.second);
8080
}
8181

82-
Symbol RewriteSystem::simplifySubstitutionsInSuperclassOrConcreteSymbol(
83-
Symbol symbol) const {
84-
return symbol.transformConcreteSubstitutions(
85-
[&](Term term) -> Term {
86-
MutableTerm mutTerm(term);
87-
if (!simplify(mutTerm))
88-
return term;
89-
90-
return Term::get(mutTerm, Context);
91-
}, Context);
92-
}
93-
9482
/// Adds a rewrite rule, returning true if the new rule was non-trivial.
9583
///
9684
/// If both sides simplify to the same term, the rule is trivial and discarded,

lib/AST/RequirementMachine/RewriteSystem.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,6 @@ class RewriteSystem final {
366366
std::vector<std::pair<MutableTerm, MutableTerm>> &&requirementRules,
367367
ProtocolGraph &&protos);
368368

369-
Symbol simplifySubstitutionsInSuperclassOrConcreteSymbol(Symbol symbol) const;
370-
371369
unsigned getRuleID(const Rule &rule) const {
372370
assert((unsigned)(&rule - &*Rules.begin()) < Rules.size());
373371
return (unsigned)(&rule - &*Rules.begin());

0 commit comments

Comments
 (0)