Skip to content

Commit b0ec567

Browse files
committed
[cxx-interop] Remove dead code: isCxxInteropCompatVersionAtLeast
rdar://165919353
1 parent 51c1358 commit b0ec567

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

include/swift/Basic/LangOptions.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -753,13 +753,6 @@ namespace swift {
753753
return EffectiveLanguageVersion.isVersionAtLeast(major, minor);
754754
}
755755

756-
/// Whether the C++ interoperability compatibility version is at least
757-
/// 'major'.
758-
bool isCxxInteropCompatVersionAtLeast(unsigned major,
759-
unsigned minor = 0) const {
760-
return cxxInteropCompatVersion.isVersionAtLeast(major, minor);
761-
}
762-
763756
/// Sets the "_hasAtomicBitWidth" conditional.
764757
void setHasAtomicBitWidth(llvm::Triple triple);
765758

lib/ClangImporter/ImporterImpl.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -624,17 +624,6 @@ class LLVM_LIBRARY_VISIBILITY ClangImporter::Implementation
624624
void getMangledName(clang::MangleContext *mangler,
625625
const clang::NamedDecl *clangDecl, raw_ostream &os);
626626

627-
/// Whether the C++ interoperability compatibility version is at least
628-
/// 'major'.
629-
///
630-
/// Use the
631-
/// `isCxxInteropCompatVersionAtLeast(version::getUpcomingCxxInteropCompatVersion())`
632-
/// check when making a source breaking C++ interop change.
633-
bool isCxxInteropCompatVersionAtLeast(unsigned major,
634-
unsigned minor = 0) const {
635-
return SwiftContext.LangOpts.isCxxInteropCompatVersionAtLeast(major, minor);
636-
}
637-
638627
private:
639628
/// The Importer may be configured to load modules of a different OS Version
640629
/// than the underlying Swift compilation. This is the `TargetOptions`

0 commit comments

Comments
 (0)