Skip to content

Commit 287faac

Browse files
committed
Remove some unused variables
1 parent 903255a commit 287faac

File tree

5 files changed

+1
-9
lines changed

5 files changed

+1
-9
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8696,7 +8696,6 @@ static void finishTypeWitnesses(
86968696
NormalProtocolConformance *conformance) {
86978697
auto *dc = conformance->getDeclContext();
86988698
auto nominal = dc->getSelfNominalTypeDecl();
8699-
auto *module = dc->getParentModule();
87008699

87018700
auto *proto = conformance->getProtocol();
87028701
auto selfType = conformance->getType();

lib/IDE/ConformingMethodList.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ void ConformingMethodListCallbacks::getMatchingMethods(
155155
assert(T->mayHaveMembers() && !T->is<ModuleType>());
156156

157157
class LocalConsumer : public VisibleDeclConsumer {
158-
ModuleDecl *CurModule;
159-
160158
/// The type of the parsed expression.
161159
Type T;
162160

@@ -204,8 +202,7 @@ void ConformingMethodListCallbacks::getMatchingMethods(
204202
LocalConsumer(DeclContext *DC, Type T,
205203
llvm::SmallPtrSetImpl<ProtocolDecl*> &expectedTypes,
206204
SmallVectorImpl<ValueDecl *> &result)
207-
: CurModule(DC->getParentModule()), T(T), ExpectedTypes(expectedTypes),
208-
Result(result) {}
205+
: T(T), ExpectedTypes(expectedTypes), Result(result) {}
209206

210207
void foundDecl(ValueDecl *VD, DeclVisibilityKind reason,
211208
DynamicLookupInfo) override {

lib/IRGen/GenMeta.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2689,7 +2689,6 @@ namespace {
26892689
substitutions.lookupConformance(underlyingDependentType, P);
26902690

26912691
if (underlyingType->hasTypeParameter()) {
2692-
auto sig = genericEnv->getGenericSignature();
26932692
underlyingConformance = underlyingConformance.subst(
26942693
underlyingType, QueryInterfaceTypeSubstitutions(genericEnv),
26952694
LookUpConformanceInModule());
@@ -5424,7 +5423,6 @@ IRGenFunction::emitValueWitnessTableRefForMetadata(llvm::Value *metadata) {
54245423
*this, metadata, &addrOfWitnessTablePtr, -1, IGM.WitnessTablePtrTy,
54255424
".valueWitnesses");
54265425

5427-
const auto &ptrAuthOpts = IGM.getOptions().PointerAuth;
54285426
if (auto schema = IGM.getOptions().PointerAuth.ValueWitnessTable) {
54295427
llvm::Value *signedWitnessTablePtr = loadOfWitnessTablePtr;
54305428
llvm::Value *witnessTablePtr = emitPointerAuthAuth(

lib/SILOptimizer/Utils/DistributedActor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ void emitDistributedActorSystemWitnessCall(
3434
ProtocolDecl *DAS = C.getDistributedActorSystemDecl();
3535
assert(DAS);
3636
auto systemASTType = base->getType().getASTType();
37-
auto *module = M.getSwiftModule();
3837
ProtocolConformanceRef systemConfRef;
3938

4039
// If the base is an existential open it.

lib/Sema/AssociatedTypeInference.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ checkTypeWitness(Type type, AssociatedTypeDecl *assocType,
149149
return CheckTypeWitnessResult::forSuccess();
150150

151151
const auto proto = Conf->getProtocol();
152-
const auto dc = Conf->getDeclContext();
153152
const auto sig = proto->getGenericSignature();
154153

155154
// FIXME: The RequirementMachine will assert on re-entrant construction.

0 commit comments

Comments
 (0)