mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Remove dead code from access level computation rework
This commit is contained in:
@@ -171,11 +171,6 @@ static void lookupInModule(ModuleDecl *module, ModuleDecl::AccessPathTy accessPa
|
||||
if (respectAccessControl) {
|
||||
auto newEndIter = std::remove_if(localDecls.begin(), localDecls.end(),
|
||||
[=](ValueDecl *VD) {
|
||||
if (typeResolver) {
|
||||
typeResolver->resolveAccessControl(VD);
|
||||
}
|
||||
if (!VD->hasAccess())
|
||||
return false;
|
||||
return !VD->isAccessibleFrom(moduleScopeContext);
|
||||
});
|
||||
localDecls.erase(newEndIter, localDecls.end());
|
||||
|
||||
Reference in New Issue
Block a user