Skip to content

Commit 186355f

Browse files
committed
Zap an unused parameter
Swift SVN r7400
1 parent 53685fe commit 186355f

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

lib/Sema/TypeCheckConstraintsApply.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,7 @@ namespace {
332332
// argument. This eliminates the genericity that comes from being
333333
// an instance method of a generic class.
334334
Expr *specializedRef
335-
= tc.buildSpecializeExpr(ref, substTy, substitutions,
336-
conformances,
337-
/*OnlyInnermostParams=*/false);
335+
= tc.buildSpecializeExpr(ref, substTy, substitutions, conformances);
338336

339337
ApplyExpr *apply;
340338
if (isa<ConstructorDecl>(member)) {

lib/Sema/TypeCheckGeneric.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ using namespace swift;
1919
SpecializeExpr *
2020
TypeChecker::buildSpecializeExpr(Expr *Sub, Type Ty,
2121
const TypeSubstitutionMap &Substitutions,
22-
const ConformanceMap &Conformances,
23-
bool OnlyInnermostParams) {
22+
const ConformanceMap &Conformances) {
2423
auto polyFn = Sub->getType()->castTo<PolymorphicFunctionType>();
2524
return new (Context) SpecializeExpr(Sub, Ty,
2625
encodeSubstitutions(&polyFn->getGenericParams(),
2726
Substitutions,
2827
Conformances,
29-
OnlyInnermostParams));
28+
/*OnlyInnermostParams=*/false));
3029
}
3130

3231
ArrayRef<Substitution>

lib/Sema/TypeChecker.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -624,13 +624,9 @@ class TypeChecker : public ASTMutationListener {
624624
///
625625
/// \param Conformances The set of protocol-conformance structures for each
626626
/// of the substitutions.
627-
///
628-
/// \param OnlyInnermostParams Whether we're specializing only the innermost
629-
/// generic parameters (rather than all levels of generic parameters).
630627
SpecializeExpr *buildSpecializeExpr(Expr *Sub, Type Ty,
631628
const TypeSubstitutionMap &Substitutions,
632-
const ConformanceMap &Conformances,
633-
bool OnlyInnermostParams);
629+
const ConformanceMap &Conformances);
634630

635631
/// \brief Build a reference to a declaration, where name lookup returned
636632
/// the given set of declarations.

0 commit comments

Comments
 (0)