Skip to content

Commit 7f61956

Browse files
authored
Merge pull request #4094 from rudkx/remove-dead-code
Remove a ClangImporter function that I noticed is no longer in use.
2 parents 92f0d9e + 065e694 commit 7f61956

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

lib/ClangImporter/ImportType.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2709,10 +2709,3 @@ Type ClangImporter::Implementation::getNSCopyingType() {
27092709
Type ClangImporter::Implementation::getNSObjectProtocolType() {
27102710
return getNamedProtocolType(*this, "NSObject");
27112711
}
2712-
2713-
Type ClangImporter::Implementation::getCFStringRefType() {
2714-
if (auto decl = dyn_cast_or_null<TypeDecl>(importDeclByName("CFStringRef")))
2715-
return decl->getDeclaredType();
2716-
return Type();
2717-
}
2718-

lib/ClangImporter/ImporterImpl.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,9 +1158,6 @@ class LLVM_LIBRARY_VISIBILITY ClangImporter::Implementation
11581158
/// \brief Retrieve the NSCopying protocol type.
11591159
Type getNSCopyingType();
11601160

1161-
/// \brief Retrieve the CFStringRef typealias.
1162-
Type getCFStringRefType();
1163-
11641161
/// \brief Determines whether the given type matches an implicit type
11651162
/// bound of "Hashable", which is used to validate NSDictionary/NSSet.
11661163
bool matchesNSObjectBound(Type type);

0 commit comments

Comments
 (0)