JS: Remove unnecessary BarrierGuardLegacy class

This commit is contained in:
Asger F
2024-03-13 11:05:23 +01:00
parent fce2be0af3
commit e0aae53ac7

View File

@@ -31,11 +31,6 @@ module StoredXss {
predicate blocksExpr(boolean outcome, Expr e) { none() }
}
/** A subclass of `BarrierGuard` that is used for backward compatibility with the old data flow library. */
abstract class BarrierGuardLegacy extends BarrierGuard, TaintTracking::SanitizerGuardNode {
override predicate sanitizes(boolean outcome, Expr e) { this.blocksExpr(outcome, e) }
}
/** An arbitrary XSS sink, considered as a flow sink for stored XSS. */
private class AnySink extends Sink {
AnySink() { this instanceof Shared::Sink }