Skip to content

Commit 93786d8

Browse files
author
Ewa Matejska
committed
Removing isSwiftVersion4, isSwiftVersion5. We'll need to come up with a better way to conditionalize code based on language version.
1 parent 1272cd3 commit 93786d8

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

include/swift/AST/ASTContext.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -865,12 +865,6 @@ class ASTContext {
865865

866866
/// Whether our effective Swift version is in the Swift 3 family
867867
bool isSwiftVersion3() const { return LangOpts.isSwiftVersion3(); }
868-
869-
/// Whether our effective Swift version is in the Swift 4 family
870-
bool isSwiftVersion4() const { return LangOpts.isSwiftVersion4(); }
871-
872-
/// Whether our effective Swift version is in the Swift 5 family
873-
bool isSwiftVersion5() const { return LangOpts.isSwiftVersion5(); }
874868

875869
private:
876870
friend Decl;

include/swift/Basic/LangOptions.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -310,16 +310,6 @@ namespace swift {
310310
bool isSwiftVersion3() const {
311311
return EffectiveLanguageVersion.isVersion3();
312312
}
313-
314-
/// Whether our effective Swift version is in the Swift 4 family
315-
bool isSwiftVersion4() const {
316-
return EffectiveLanguageVersion.isVersion4();
317-
}
318-
319-
/// Whether our effective Swift version is in the Swift 5 family
320-
bool isSwiftVersion5() const {
321-
return EffectiveLanguageVersion.isVersion5();
322-
}
323313

324314
/// Returns true if the given platform condition argument represents
325315
/// a supported target operating system.

include/swift/Basic/Version.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,6 @@ class Version {
109109

110110
/// Whether this version is in the Swift 3 family
111111
bool isVersion3() const { return !empty() && Components[0] == 3; }
112-
113-
/// Whether this version is in the Swift 4 family
114-
bool isVersion4() const { return !empty() && Components[0] == 4; }
115-
116-
/// Whether this version is in the Swift 5 family
117-
bool isVersion5() const { return !empty() && Components[0] == 5; }
118112

119113
/// Return this Version struct with minor and sub-minor components stripped
120114
Version asMajorVersion() const;

0 commit comments

Comments
 (0)