Skip to content

Commit 90c3098

Browse files
committed
JS: Remove unused predicate
1 parent 55636b3 commit 90c3098

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
@@ -778,14 +778,6 @@ module API {
778778

779779
private predicate hasSemantics(DataFlow::Node nd) { not nd.getTopLevel().isExterns() }
780780

781-
/** Holds if `imp` is an import of module `m`. */
782-
private predicate imports(DataFlow::Node imp, string m) {
783-
imp = DataFlow::moduleImport(m) and
784-
// path must not start with a dot or a slash
785-
m.regexpMatch("[^./].*") and
786-
hasSemantics(imp)
787-
}
788-
789781
private signature module StageInputSig {
790782
predicate isAdditionalUseRoot(Node node);
791783

0 commit comments

Comments
 (0)