Skip to content

Commit beb883f

Browse files
committed
Sema: Remove unnecessary hack
1 parent c1adfed commit beb883f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,14 +2248,6 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
22482248
}
22492249
}
22502250

2251-
// FIXME: Temporary hack until capture computation has been request-ified.
2252-
if (VD->getDeclContext()->isLocalContext()) {
2253-
VD->visitOpaqueAccessors([&](AccessorDecl *accessor) {
2254-
if (accessor->isImplicit())
2255-
TC.definedFunctions.push_back(accessor);
2256-
});
2257-
}
2258-
22592251
// Under the Swift 3 inference rules, if we have @IBInspectable or
22602252
// @GKInspectable but did not infer @objc, warn that the attribute is
22612253
if (!VD->isObjC() && TC.Context.LangOpts.EnableSwift3ObjCInference) {

0 commit comments

Comments
 (0)