mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
delete all deprecations that are over 14 months old
This commit is contained in:
@@ -9,18 +9,6 @@ import javascript
|
||||
*/
|
||||
predicate jquery = JQuery::dollar/0;
|
||||
|
||||
/**
|
||||
* DEPRECATED. In most cases, `JQuery::Object` should be used instead.
|
||||
* Alternatively, if used as a base class, and the intent is to extend the model of
|
||||
* jQuery objects with more nodes, extend `JQuery::ObjectSource::Range` instead.
|
||||
*
|
||||
* An expression that may refer to a jQuery object.
|
||||
*
|
||||
* Note that this class is an over-approximation: `nd instanceof JQueryObject`
|
||||
* may hold for nodes `nd` that cannot, in fact, refer to a jQuery object.
|
||||
*/
|
||||
deprecated class JQueryObject = JQueryObjectInternal;
|
||||
|
||||
/**
|
||||
* An internal version of `JQueryObject` that may be used to retain
|
||||
* backwards compatibility without triggering a deprecation warning.
|
||||
@@ -80,44 +68,6 @@ private predicate neverReturnsJQuery(string name) {
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* DEPRECATED. Use `JQuery::MethodCall` instead.
|
||||
*
|
||||
* A (possibly chained) call to a jQuery method.
|
||||
*/
|
||||
deprecated class JQueryMethodCall extends CallExpr {
|
||||
string name;
|
||||
|
||||
JQueryMethodCall() { name = this.flow().(JQuery::MethodCall).getMethodName() }
|
||||
|
||||
/**
|
||||
* Gets the name of the jQuery method this call invokes.
|
||||
*/
|
||||
string getMethodName() { result = name }
|
||||
|
||||
/**
|
||||
* Holds if `e` is an argument that this method may interpret as HTML.
|
||||
*
|
||||
* Note that some jQuery methods decide whether to interpret an argument
|
||||
* as HTML based on its syntactic shape, so this predicate and
|
||||
* `interpretsArgumentAsSelector` below overlap.
|
||||
*/
|
||||
predicate interpretsArgumentAsHtml(Expr e) {
|
||||
this.flow().(JQuery::MethodCall).interpretsArgumentAsHtml(e.flow())
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if `e` is an argument that this method may interpret as a selector.
|
||||
*
|
||||
* Note that some jQuery methods decide whether to interpret an argument
|
||||
* as a selector based on its syntactic shape, so this predicate and
|
||||
* `interpretsArgumentAsHtml` above overlap.
|
||||
*/
|
||||
predicate interpretsArgumentAsSelector(Expr e) {
|
||||
this.flow().(JQuery::MethodCall).interpretsArgumentAsSelector(e.flow())
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A call to `jQuery.parseXML`.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user