Skip to content

Commit 5981833

Browse files
committed
[cxx-interop] NFC: Remove unused method
`importer::hasUnsafeAPIAttr` is being used instead of this method.
1 parent 6c92f3f commit 5981833

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3842,14 +3842,6 @@ namespace {
38423842
recordObjCOverride(result);
38433843
}
38443844

3845-
static bool hasUnsafeAPIAttr(const clang::Decl *decl) {
3846-
return decl->hasAttrs() && llvm::any_of(decl->getAttrs(), [](auto *attr) {
3847-
if (auto swiftAttr = dyn_cast<clang::SwiftAttrAttr>(attr))
3848-
return swiftAttr->getAttribute() == "import_unsafe";
3849-
return false;
3850-
});
3851-
}
3852-
38533845
static bool hasComputedPropertyAttr(const clang::Decl *decl) {
38543846
return decl->hasAttrs() && llvm::any_of(decl->getAttrs(), [](auto *attr) {
38553847
if (auto swiftAttr = dyn_cast<clang::SwiftAttrAttr>(attr))

0 commit comments

Comments
 (0)