Skip to content

Commit 1f46086

Browse files
committed
SILGen: Remove some dead code
1 parent a0c03d0 commit 1f46086

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/SILGen/SILGenType.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,6 @@ class SILGenExtension : public TypeMemberVisitor<SILGenExtension> {
494494
SGM.emitPropertyBehavior(vd);
495495
if (vd->hasStorage()) {
496496
assert(vd->isStatic() && "stored property in extension?!");
497-
ExtensionDecl *ext = cast<ExtensionDecl>(vd->getDeclContext());
498-
NominalTypeDecl *theType = ext->getExtendedType()->getAnyNominal();
499497
return emitTypeMemberGlobalVariable(SGM, vd);
500498
}
501499
visitAbstractStorageDecl(vd);

0 commit comments

Comments
 (0)