Skip to content

Commit 6811586

Browse files
committed
Remove NumLookupQualifiedInAnyObject counter
We now have an equivalent counter for AnyObjectLookupRequest.
1 parent 256c129 commit 6811586

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

include/swift/Basic/Statistics.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,6 @@ FRONTEND_STATISTIC(AST, NumLookupQualifiedInNominal)
144144
/// Number of qualified lookups into a module.
145145
FRONTEND_STATISTIC(AST, NumLookupQualifiedInModule)
146146

147-
/// Number of qualified lookups into AnyObject.
148-
FRONTEND_STATISTIC(AST, NumLookupQualifiedInAnyObject)
149-
150147
/// Number of local lookups into a module.
151148
FRONTEND_STATISTIC(AST, NumModuleLookupValue)
152149

lib/AST/NameLookup.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,10 +1820,6 @@ AnyObjectLookupRequest::evaluate(Evaluator &evaluator, const DeclContext *dc,
18201820
if (options & NL_OnlyTypes)
18211821
return decls;
18221822

1823-
auto *stats = dc->getASTContext().Stats;
1824-
if (stats)
1825-
stats->getFrontendCounters().NumLookupQualifiedInAnyObject++;
1826-
18271823
// Collect all of the visible declarations.
18281824
SmallVector<ValueDecl *, 4> allDecls;
18291825
for (auto import : namelookup::getAllImports(dc)) {

0 commit comments

Comments
 (0)