Skip to content

Commit 3ba40af

Browse files
authored
[NFC] TypeCheckDeclPrimary.cpp: remove unused isGenericType
This change fixes a warning encountered when compiling this file: ``` swift/lib/Sema/TypeCheckDeclPrimary.cpp:475:8: warning: unused variable 'isGenericType' [-Wunused-variable] bool isGenericType = isa<NominalTypeDecl>(decl); ```
1 parent 23e2f34 commit 3ba40af

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/Sema/TypeCheckDeclPrimary.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,6 @@ static void checkGenericParams(GenericContext *ownerCtx) {
472472
return;
473473

474474
auto *decl = ownerCtx->getAsDecl();
475-
bool isGenericType = isa<NominalTypeDecl>(decl);
476475
bool hasPack = false;
477476

478477
for (auto gp : *genericParams) {

0 commit comments

Comments
 (0)