Skip to content

Commit 2b1921b

Browse files
authored
Merge pull request #12686 from dcci/unused2
[gardening] More unused variables/lambda captures. NFCI.
2 parents d9445e8 + c7b93ca commit 2b1921b

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6312,7 +6312,7 @@ void GenericSignatureBuilder::enumerateRequirements(
63126312
Type otherSubjectType =
63136313
getUnresolvedType(nextComponent.anchor, genericParams);
63146314
deferredSameTypeRequirement =
6315-
[&f, subjectType, otherSubjectType, this, genericParams] {
6315+
[&f, subjectType, otherSubjectType, this] {
63166316
f(RequirementKind::SameType, subjectType, otherSubjectType,
63176317
RequirementSource::forAbstract(*this, otherSubjectType));
63186318
};

lib/IDE/TypeReconstruction.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,6 @@ static bool FindFirstNamedDeclWithKind(
476476
}
477477
}
478478
} else if (result._module) {
479-
ModuleDecl::AccessPathTy access_path;
480479
SmallVector<ValueDecl *, 4> decls;
481480
if (priv_decl_id)
482481
result._module.lookupMember(

lib/Index/Index.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,6 @@ bool IndexSwiftASTWalker::initFuncRefIndexSymbol(ValueDecl *D, SourceLoc Loc,
11361136
ReceiverTy = MetaT->getInstanceType();
11371137

11381138
if (auto TyD = ReceiverTy->getAnyNominal()) {
1139-
StringRef unused;
11401139
if (addRelation(Info, (SymbolRoleSet) SymbolRole::RelationReceivedBy, TyD))
11411140
return true;
11421141
if (isDynamicCall(BaseE, D))

0 commit comments

Comments
 (0)