Skip to content

Commit c71bd4c

Browse files
committed
Swift: Remove unused predicate.
1 parent 0a0cfc3 commit c71bd4c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

swift/ql/lib/codeql/swift/dataflow/ExternalFlow.qll

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -390,18 +390,6 @@ predicate matchesSignature(AbstractFunctionDecl func, string signature) {
390390
paramsString(func) = signature
391391
}
392392

393-
private NominalType getDeclType(IterableDeclContext decl) {
394-
result = decl.(ClassDecl).getType()
395-
or
396-
result = decl.(StructDecl).getType()
397-
or
398-
result = getDeclType(decl.(ExtensionDecl).getExtendedTypeDecl())
399-
or
400-
result = decl.(EnumDecl).getType()
401-
or
402-
result = decl.(ProtocolDecl).getType()
403-
}
404-
405393
private NominalTypeDecl resolveExtensions(IterableDeclContext decl) {
406394
// TODO: this should be a method on IterableDeclContext
407395
result = decl.(NominalTypeDecl)

0 commit comments

Comments
 (0)