Skip to content

Commit b8a6a9e

Browse files
committed
AST: Remove dead code
1 parent 48d814b commit b8a6a9e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/AST/NameLookup.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3142,16 +3142,6 @@ DirectlyReferencedTypeDecls InheritedDeclsReferencedRequest::evaluate(
31423142
llvm::PointerUnion<const TypeDecl *, const ExtensionDecl *> decl,
31433143
unsigned index) const {
31443144

3145-
// FIXME: this is an awful hack for NoncopyableGenerics.
3146-
// The correct fix here is to integrate the guts of
3147-
// `ProtocolDecl::requiresInvertible` into this request, so that it works
3148-
// automatically, not only for `ProtocolDecl::inheritsFrom` but for other
3149-
// nominal types too.
3150-
if (auto typeDecl = decl.dyn_cast<const TypeDecl *>())
3151-
if (auto protoDecl = dyn_cast<ProtocolDecl>(typeDecl))
3152-
if (protoDecl->isSpecificProtocol(KnownProtocolKind::Sendable))
3153-
return {};
3154-
31553145
// Prefer syntactic information when we have it.
31563146
const TypeLoc &typeLoc = InheritedTypes(decl).getEntry(index);
31573147
if (auto typeRepr = typeLoc.getTypeRepr()) {

0 commit comments

Comments
 (0)