Skip to content

Commit 5ff9586

Browse files
committed
[NFC] Remove MemberLookupTable::clear()
The incremental name lookup cache no longer needs to chuck out the old tables.
1 parent 2007515 commit 5ff9586

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/AST/NameLookup.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -926,21 +926,6 @@ class swift::MemberLookupTable {
926926
dump(llvm::errs());
927927
}
928928

929-
// Mark all Decls in this table as not-resident in a table, drop
930-
// references to them. Should only be called when this was not fully-populated
931-
// from an IterableDeclContext.
932-
void clear() {
933-
// LastExtensionIncluded would only be non-null if this was populated from
934-
// an IterableDeclContext (though it might still be null in that case).
935-
assert(LastExtensionIncluded == nullptr);
936-
for (auto const &i : Lookup) {
937-
for (auto d : i.getSecond()) {
938-
d->setAlreadyInLookupTable(false);
939-
}
940-
}
941-
Lookup.clear();
942-
}
943-
944929
// Only allow allocation of member lookup tables using the allocator in
945930
// ASTContext or by doing a placement new.
946931
void *operator new(size_t Bytes, ASTContext &C,

0 commit comments

Comments
 (0)