Skip to content

Commit 4063124

Browse files
committed
AST: Remove isSwiftVersion3()
1 parent 8f3379c commit 4063124

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

include/swift/AST/ASTContext.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -924,9 +924,6 @@ class ASTContext final {
924924
CanGenericSignature getExistentialSignature(CanType existential,
925925
ModuleDecl *mod);
926926

927-
/// Whether our effective Swift version is in the Swift 3 family.
928-
bool isSwiftVersion3() const { return LangOpts.isSwiftVersion3(); }
929-
930927
/// Whether our effective Swift version is at least 'major'.
931928
///
932929
/// This is usually the check you want; for example, when introducing

include/swift/Basic/LangOptions.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,6 @@ namespace swift {
358358
return CustomConditionalCompilationFlags;
359359
}
360360

361-
/// Whether our effective Swift version is in the Swift 3 family
362-
bool isSwiftVersion3() const {
363-
return EffectiveLanguageVersion.isVersion3();
364-
}
365-
366361
/// Whether our effective Swift version is at least 'major'.
367362
///
368363
/// This is usually the check you want; for example, when introducing

include/swift/Basic/Version.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,6 @@ class Version {
107107
/// compiler to act as if it is version 3.1.
108108
Optional<Version> getEffectiveLanguageVersion() const;
109109

110-
/// Whether this version is in the Swift 3 family
111-
bool isVersion3() const { return !empty() && Components[0] == 3; }
112-
113110
/// Whether this version is greater than or equal to the given major version
114111
/// number.
115112
bool isVersionAtLeast(unsigned major, unsigned minor = 0) const {

0 commit comments

Comments
 (0)