Skip to content

Commit ba73337

Browse files
committed
JS: Remove unused predicate
1 parent b2720c4 commit ba73337

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

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

784784
private predicate hasSemantics(DataFlow::Node nd) { not nd.getTopLevel().isExterns() }
785785

786-
/** Holds if `imp` is an import of module `m`. */
787-
private predicate imports(DataFlow::Node imp, string m) {
788-
imp = DataFlow::moduleImport(m) and
789-
// path must not start with a dot or a slash
790-
m.regexpMatch("[^./].*") and
791-
hasSemantics(imp)
792-
}
793-
794786
private signature module StageInputSig {
795787
/** Holds if `node` should be seen as a use-node root, in addition to module imports (which are the usual roots). */
796788
predicate isAdditionalUseRoot(Node node);

0 commit comments

Comments
 (0)