Skip to content

Commit 6c00a7f

Browse files
committed
JS: Remove unused predicate
1 parent 3ed0f36 commit 6c00a7f

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

javascript/ql/lib/semmle/javascript/ApiGraphs.qll

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -791,14 +791,6 @@ module API {
791791

792792
private predicate hasSemantics(DataFlow::Node nd) { not nd.getTopLevel().isExterns() }
793793

794-
/** Holds if `imp` is an import of module `m`. */
795-
private predicate imports(DataFlow::Node imp, string m) {
796-
imp = DataFlow::moduleImport(m) and
797-
// path must not start with a dot or a slash
798-
m.regexpMatch("[^./].*") and
799-
hasSemantics(imp)
800-
}
801-
802794
private signature module StageInputSig {
803795
/** Holds if `node` should be seen as a use-node root, in addition to module imports (which are the usual roots). */
804796
predicate isAdditionalUseRoot(Node node);

0 commit comments

Comments
 (0)