mirror of
https://github.com/github/codeql.git
synced 2026-02-12 05:01:06 +01:00
JS: Remove unused predicate
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user