Skip to content

Commit 63540b4

Browse files
Merge pull request #9662 from practicalswift/gardening-2017-05-16
[gardening] Remove unused diagnostic. Remove unused variable. Fix spacing and headers.
2 parents 5e31b5b + fbad9fc commit 63540b4

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

include/swift/AST/DiagnosticsParse.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,9 +1435,6 @@ ERROR(unsupported_platform_runtime_condition_argument,none,
14351435
ERROR(unsupported_platform_condition_argument,none,
14361436
"unexpected platform condition argument: expected %0",
14371437
(StringRef))
1438-
ERROR(unexpected_version_comparison_operator,none,
1439-
"expected '>=' prefix operator on a version requirement",
1440-
())
14411438
ERROR(unsupported_conditional_compilation_expression_type,none,
14421439
"invalid conditional compilation expression", ())
14431440
WARNING(swift3_unsupported_conditional_compilation_expression_type,none,

lib/Parse/ParseIfConfig.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ class ValidateIfConfigCondition :
265265

266266
auto Val = version::Version::parseCompilerVersionString(
267267
SLE->getValue(), SLE->getLoc(), &D);
268-
if(!Val.hasValue())
268+
if (!Val.hasValue())
269269
return nullptr;
270270
return E;
271271
}
@@ -284,7 +284,7 @@ class ValidateIfConfigCondition :
284284
auto versionString = extractExprSource(Ctx.SourceMgr, PUE->getArg());
285285
auto Val = version::Version::parseVersionString(
286286
versionString, PUE->getArg()->getStartLoc(), &D);
287-
if(!Val.hasValue())
287+
if (!Val.hasValue())
288288
return nullptr;
289289
return E;
290290
}

lib/SILOptimizer/Utils/PerformanceInlinerUtils.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,6 @@ bool swift::isPureCall(FullApplySite AI, SideEffectAnalysis *SEA) {
727727
return false;
728728
// Check if all parameters are constant.
729729
auto Args = AI.getArgumentsWithoutIndirectResults();
730-
bool allArgsConstant = true;
731730
for (auto Arg : Args) {
732731
if (!isConstantValue(Arg)) {
733732
return false;

stdlib/public/SwiftShims/NSCharacterSetShims.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- NSCharacterSetShims.h - Foundation declarations for CharacterSet overlay -----===//
1+
//===--- NSCharacterSetShims.h - Foundation decl. for CharacterSet overlay ===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

0 commit comments

Comments
 (0)