Skip to content

Commit e311d2b

Browse files
committed
JS: Remove a now-unused predicate
1 parent b9ac1e5 commit e311d2b

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

javascript/ql/lib/semmle/javascript/TypeScript.qll

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -702,20 +702,6 @@ class TypeAccess extends @typeaccess, TypeExpr, TypeRef {
702702
override string getAPrimaryQlClass() { result = "TypeAccess" }
703703
}
704704

705-
/**
706-
* Gets a suitable name for the library imported by `imprt`.
707-
*
708-
* For relative imports, this is the snapshot-relative path to the imported module.
709-
* For non-relative imports, it is the import path itself.
710-
*/
711-
private string getImportName(Import imprt) {
712-
exists(string path | path = imprt.getImportedPath().getValue() |
713-
if path.regexpMatch("[./].*")
714-
then result = imprt.getImportedModule().getFile().getRelativePath()
715-
else result = path
716-
)
717-
}
718-
719705
/** An identifier that is used as part of a type, such as `Date`. */
720706
class LocalTypeAccess extends @local_type_access, TypeAccess, Identifier, LexicalAccess {
721707
override predicate isStringy() { this.getName() = "String" }

0 commit comments

Comments
 (0)