Skip to content

Commit bd7763d

Browse files
committed
AST: Remove unused UnqualifiedLookupFactory::resultsSizeBeforeLocalsPass
This was read but never written to. I believe it was an artifact of the pre-ASTScope lookup logic.
1 parent 025921c commit bd7763d

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/AST/UnqualifiedLookup.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,6 @@ namespace {
144144
static const unsigned targetLookup;
145145
#endif
146146

147-
public: // for exp debugging
148-
unsigned resultsSizeBeforeLocalsPass = ~0;
149-
150147
public:
151148
// clang-format off
152149
UnqualifiedLookupFactory(DeclNameRef Name,
@@ -708,16 +705,10 @@ void UnqualifiedLookupFactory::printScopes(raw_ostream &out) const {
708705

709706
void UnqualifiedLookupFactory::printResults(raw_ostream &out) const {
710707
for (auto i : indices(Results)) {
711-
if (i == resultsSizeBeforeLocalsPass)
712-
out << "============== next pass ============\n";
713708
out << i << ": ";
714709
Results[i].print(out);
715710
out << "\n";
716711
}
717-
if (resultsSizeBeforeLocalsPass == Results.size())
718-
out << "============== next pass ============\n";
719-
if (resultsSizeBeforeLocalsPass == ~0u)
720-
out << "never tried locals\n\n";
721712
}
722713

723714
void UnqualifiedLookupFactory::print(raw_ostream &OS) const {

0 commit comments

Comments
 (0)