Skip to content

Commit 2ecdfd1

Browse files
committed
Delete some code that's no longer in use
1 parent fedb98d commit 2ecdfd1

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/StandardEndpointFilters.qll

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -38,42 +38,6 @@ predicate isSomeModeledArgument(DataFlow::Node n) {
3838
CoreKnowledge::isOtherModeledArgument(n, _)
3939
}
4040

41-
/**
42-
* Holds if `n` appears to be a numeric value.
43-
*/
44-
predicate isNumeric(DataFlow::Node n) { isReadFrom(n, ".*index.*") }
45-
46-
/**
47-
* Holds if `n` is an argument to a library without sinks.
48-
*/
49-
predicate isArgumentToSinklessLibrary(DataFlow::Node n) {
50-
exists(DataFlow::InvokeNode invk, DataFlow::SourceNode commonSafeLibrary, string libraryName |
51-
libraryName = ["slugify", "striptags", "marked"]
52-
|
53-
commonSafeLibrary = DataFlow::moduleImport(libraryName) and
54-
invk = [commonSafeLibrary, commonSafeLibrary.getAPropertyRead()].getAnInvocation() and
55-
n = invk.getAnArgument()
56-
)
57-
}
58-
59-
predicate isSanitizer(DataFlow::Node n) {
60-
exists(DataFlow::CallNode call | n = call.getAnArgument() |
61-
call.getCalleeName().regexpMatch("(?i).*(escape|valid(ate)?|sanitize|purify).*")
62-
)
63-
}
64-
65-
predicate isPredicate(DataFlow::Node n) {
66-
exists(DataFlow::CallNode call | n = call.getAnArgument() |
67-
call.getCalleeName().regexpMatch("(equals|(|is|has|can)(_|[A-Z])).*")
68-
)
69-
}
70-
71-
predicate isHash(DataFlow::Node n) {
72-
exists(DataFlow::CallNode call | n = call.getAnArgument() |
73-
call.getCalleeName().regexpMatch("(?i)^(sha\\d*|md5|hash)$")
74-
)
75-
}
76-
7741
/**
7842
* Holds if the data flow node is a (possibly indirect) argument of a likely external library call.
7943
*

0 commit comments

Comments
 (0)