Skip to content

Commit 51d9254

Browse files
authored
[ClangImporter] Drop support for FactoryAsInit in API notes. (#6907)
SwiftName covers this use case, so we're going to remove FactoryAsInit entirely.
1 parent b861853 commit 51d9254

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/ClangImporter/ImportName.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -572,10 +572,6 @@ getFactoryAsInit(const clang::ObjCInterfaceDecl *classDecl,
572572
return FactoryAsInitKind::AsClassMethod;
573573
}
574574

575-
if (method->hasAttr<clang::SwiftSuppressFactoryAsInitAttr>()) {
576-
return FactoryAsInitKind::AsClassMethod;
577-
}
578-
579575
return FactoryAsInitKind::Infer;
580576
}
581577

0 commit comments

Comments
 (0)