Remove SourceFile::addVisibleDecl.

`SourceFile::addVisibleDecl` is an unnecessary API.
It was upstreamed in https://github.com/apple/swift/pull/30821.
This commit is contained in:
Dan Zheng
2020-04-07 12:14:17 -07:00
parent 5d8d8dab2d
commit f9ef75ff34
3 changed files with 2 additions and 9 deletions

View File

@@ -2232,11 +2232,6 @@ SourceFile::getCachedVisibleDecls() const {
return getCache().AllVisibleValues;
}
void SourceFile::addVisibleDecl(ValueDecl *decl) {
Decls->push_back(decl);
getCache().AllVisibleValues.push_back(decl);
}
static void performAutoImport(
SourceFile &SF,
SourceFile::ImplicitModuleImportKind implicitModuleImportKind) {