From 6c00a7fb96353ed7ae2e20510d0841f84f6d354b Mon Sep 17 00:00:00 2001 From: Asger F Date: Fri, 10 Oct 2025 10:05:08 +0200 Subject: [PATCH] JS: Remove unused predicate --- javascript/ql/lib/semmle/javascript/ApiGraphs.qll | 8 -------- 1 file changed, 8 deletions(-) diff --git a/javascript/ql/lib/semmle/javascript/ApiGraphs.qll b/javascript/ql/lib/semmle/javascript/ApiGraphs.qll index 03bce9871ac..7334d151df5 100644 --- a/javascript/ql/lib/semmle/javascript/ApiGraphs.qll +++ b/javascript/ql/lib/semmle/javascript/ApiGraphs.qll @@ -791,14 +791,6 @@ module API { private predicate hasSemantics(DataFlow::Node nd) { not nd.getTopLevel().isExterns() } - /** Holds if `imp` is an import of module `m`. */ - private predicate imports(DataFlow::Node imp, string m) { - imp = DataFlow::moduleImport(m) and - // path must not start with a dot or a slash - m.regexpMatch("[^./].*") and - hasSemantics(imp) - } - private signature module StageInputSig { /** Holds if `node` should be seen as a use-node root, in addition to module imports (which are the usual roots). */ predicate isAdditionalUseRoot(Node node);