Skip to content

Commit 7973460

Browse files
authored
Merge pull request #734 from xiemaisi/js/remove-deprecated
Approved by esben-semmle
2 parents 89becbc + 8944784 commit 7973460

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1
-1319
lines changed

change-notes/1.20/analysis-javascript.md

+1
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@
3636

3737
* `DataFlow::SourceNode` is no longer an abstract class; to add new source nodes, extend `DataFlow::SourceNode::Range` instead.
3838
* Subclasses of `DataFlow::PropRead` are no longer automatically made source nodes; you now need to additionally define a corresponding subclass of `DataFlow::SourceNode::Range` to achieve this.
39+
* The deprecated libraries `semmle.javascript.DataFlow` and `semmle.javascript.dataflow.CallGraph` have been removed; they are both superseded by `semmle.javascript.dataflow.DataFlow`.

javascript/ql/src/javascript.qll

-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import semmle.javascript.Classes
1111
import semmle.javascript.Comments
1212
import semmle.javascript.Concepts
1313
import semmle.javascript.Constants
14-
import semmle.javascript.DataFlow
1514
import semmle.javascript.DefUse
1615
import semmle.javascript.DOM
1716
import semmle.javascript.EmailClients
@@ -49,7 +48,6 @@ import semmle.javascript.Util
4948
import semmle.javascript.Variables
5049
import semmle.javascript.XML
5150
import semmle.javascript.YAML
52-
import semmle.javascript.dataflow.CallGraph
5351
import semmle.javascript.dataflow.DataFlow
5452
import semmle.javascript.dataflow.TaintTracking
5553
import semmle.javascript.dataflow.TypeInference

javascript/ql/src/semmle/javascript/AMD.qll

-8
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,6 @@ class AMDModuleDefinition extends CallExpr {
5151
result = getARequireCall().getAnArgument()
5252
}
5353

54-
/**
55-
* DEPRECATED: Use `getFactoryNode` instead.
56-
*
57-
* Gets the factory expression of this module definition,
58-
* which may be a function or a literal.
59-
*/
60-
deprecated Expr getFactoryExpr() { result = getFactoryNode().asExpr() }
61-
6254
/**
6355
* Gets a data flow node containing the factory value of this module definition.
6456
*/

javascript/ql/src/semmle/javascript/CanonicalNames.qll

-14
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,6 @@ class TypeName extends CanonicalName {
221221
*/
222222
TypeReference getATypeReference() { result.getTypeName() = this }
223223

224-
/**
225-
* DEPRECATED. Use `getRelativeName()` or `hasQualifiedName()` instead.
226-
*
227-
* Gets the qualified name without the root.
228-
*/
229-
deprecated string getQualifiedName() { result = getRelativeName() }
230-
231224
/**
232225
* Gets a type named in the `extends` or `implements` clause of this type.
233226
*/
@@ -265,13 +258,6 @@ class Namespace extends CanonicalName {
265258
*/
266259
NamespaceAccess getAnAccess() { result.getNamespace() = this }
267260

268-
/**
269-
* DEPRECATED. Use `getRelativeName()` or `hasQualifiedName()` instead.
270-
*
271-
* Gets the qualified name without the root.
272-
*/
273-
deprecated string getQualifiedName() { result = getRelativeName() }
274-
275261
/** Gets a namespace nested in this one. */
276262
Namespace getNamespaceMember(string name) {
277263
result.getParent() = this and

javascript/ql/src/semmle/javascript/Comments.qll

-9
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,6 @@ class HtmlCommentStart extends @htmlcommentstart, HtmlLineComment { }
4444
/** An HTML comment end token interpreted as a line comment. */
4545
class HtmlCommentEnd extends @htmlcommentend, HtmlLineComment { }
4646

47-
/** DERECATED: Use `HtmlLineComment` instead. */
48-
deprecated class HTMLComment = HtmlLineComment;
49-
50-
/** DERECATED: Use `HtmlCommentStart` instead. */
51-
deprecated class HTMLCommentStart = HtmlCommentStart;
52-
53-
/** DERECATED: Use `HtmlCommentEnd` instead. */
54-
deprecated class HTMLCommentEnd = HtmlCommentEnd;
55-
5647
/** A `//` comment. */
5748
class SlashSlashComment extends @slashslashcomment, LineComment { }
5849

0 commit comments

Comments
 (0)