Skip to content

Commit 08724a8

Browse files
committed
Rust: Remove the colocated nodes metric. Not proven useful.
1 parent df01db8 commit 08724a8

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

rust/ql/src/queries/summary/Stats.qll

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,6 @@ int getTaintEdgesCount() {
104104
*/
105105
int getQuerySinksCount() { result = count(QuerySink s) }
106106

107-
/**
108-
* Holds if there are at least 10 data flow nodes in the same location
109-
* as `n`.
110-
*/
111-
private predicate isColocated10(DataFlow::Node n) {
112-
exists(Location l |
113-
l = n.getLocation() and
114-
strictcount(DataFlow::Node other | other.getLocation() = l) >= 10
115-
)
116-
}
117-
118107
class CrateElement extends Element {
119108
CrateElement() {
120109
this instanceof Crate or
@@ -220,9 +209,6 @@ predicate taintStats(string key, int value) {
220209
or
221210
key = "Taint reach - per million nodes" and value = getTaintReach().floor()
222211
or
223-
key = "Taint nodes - highly colocated nodes" and
224-
value = count(DataFlow::Node n | isColocated10(n))
225-
or
226212
key = "Taint sinks - query sinks" and value = getQuerySinksCount()
227213
or
228214
key = "Taint sinks - cryptographic operations" and

0 commit comments

Comments
 (0)