Skip to content

Commit 6dfeb25

Browse files
committed
delete old deprecations
1 parent f222cce commit 6dfeb25

File tree

167 files changed

+0
-3068
lines changed

Some content is hidden

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

167 files changed

+0
-3068
lines changed

python/ql/lib/semmle/python/Files.qll

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,6 @@ abstract class Container extends @container {
154154
*/
155155
string toString() { result = this.getAbsolutePath() }
156156

157-
/**
158-
* Gets the name of this container.
159-
* DEPRECATED: Use `getAbsolutePath` instead.
160-
*/
161-
deprecated string getName() { result = this.getAbsolutePath() }
162-
163157
/**
164158
* Gets the relative path of this file or folder from the root folder of the
165159
* analyzed source location. The relative path of the root folder itself is

python/ql/lib/semmle/python/dataflow/old/TaintTracking.qll

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -664,14 +664,6 @@ module DataFlow {
664664
}
665665
}
666666

667-
deprecated private class DataFlowType extends TaintKind {
668-
// this only exists to avoid an empty recursion error in the type checker
669-
DataFlowType() {
670-
this = "Data flow" and
671-
1 = 2
672-
}
673-
}
674-
675667
pragma[noinline]
676668
private predicate dict_construct(ControlFlowNode itemnode, ControlFlowNode dictnode) {
677669
dictnode.(DictNode).getAValue() = itemnode

python/ql/lib/semmle/python/frameworks/Django.qll

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -534,9 +534,6 @@ module PrivateDjango {
534534
/** Gets a reference to the `django` module. */
535535
API::Node django() { result = API::moduleImport("django") }
536536

537-
/** DEPRECATED: Alias for `DjangoImpl` */
538-
deprecated module django = DjangoImpl;
539-
540537
/** Provides models for the `django` module. */
541538
module DjangoImpl {
542539
// -------------------------------------------------------------------------
@@ -552,9 +549,6 @@ module PrivateDjango {
552549
DjangoDb() { this = API::moduleImport("django").getMember("db") }
553550
}
554551

555-
/** DEPRECATED: Alias for `DB` */
556-
deprecated module db = DB;
557-
558552
/** Provides models for the `django.db` module. */
559553
module DB {
560554
/** Gets a reference to the `django.db.connection` object. */
@@ -571,9 +565,6 @@ module PrivateDjango {
571565
/** Gets a reference to the `django.db.models` module. */
572566
API::Node models() { result = db().getMember("models") }
573567

574-
/** DEPRECATED: Alias for `Models` */
575-
deprecated module models = Models;
576-
577568
/** Provides models for the `django.db.models` module. */
578569
module Models {
579570
/**
@@ -819,9 +810,6 @@ module PrivateDjango {
819810
/** Gets a reference to the `django.db.models.expressions` module. */
820811
API::Node expressions() { result = models().getMember("expressions") }
821812

822-
/** DEPRECATED: Alias for `Expressions` */
823-
deprecated module expressions = Expressions;
824-
825813
/** Provides models for the `django.db.models.expressions` module. */
826814
module Expressions {
827815
/** Provides models for the `django.db.models.expressions.RawSql` class. */
@@ -858,9 +846,6 @@ module PrivateDjango {
858846
instance(DataFlow::TypeTracker::end(), sql).flowsTo(result)
859847
}
860848
}
861-
862-
/** DEPRECATED: Alias for RawSql */
863-
deprecated module RawSQL = RawSql;
864849
}
865850

866851
/** This internal module provides data-flow modeling of Django ORM. */
@@ -1099,9 +1084,6 @@ module PrivateDjango {
10991084
/** Gets a reference to the `django.urls` module. */
11001085
API::Node urls() { result = django().getMember("urls") }
11011086

1102-
/** DEPRECATED: Alias for `Urls` */
1103-
deprecated module urls = Urls;
1104-
11051087
/** Provides models for the `django.urls` module */
11061088
module Urls {
11071089
/**
@@ -1123,14 +1105,8 @@ module PrivateDjango {
11231105
/** Gets a reference to the `django.conf` module. */
11241106
API::Node conf() { result = django().getMember("conf") }
11251107

1126-
/** DEPRECATED: Alias for `Conf` */
1127-
deprecated module conf = Conf;
1128-
11291108
/** Provides models for the `django.conf` module */
11301109
module Conf {
1131-
/** DEPRECATED: Alias for `ConfUrls` */
1132-
deprecated module conf_urls = ConfUrls;
1133-
11341110
/** Provides models for the `django.conf.urls` module */
11351111
module ConfUrls {
11361112
// -------------------------------------------------------------------------
@@ -1166,9 +1142,6 @@ module PrivateDjango {
11661142
/** Gets a reference to the `django.http.request` module. */
11671143
API::Node request() { result = http().getMember("request") }
11681144

1169-
/** DEPRECATED: Alias for `Request` */
1170-
deprecated module request = Request;
1171-
11721145
/** Provides models for the `django.http.request` module. */
11731146
module Request {
11741147
/**
@@ -1331,9 +1304,6 @@ module PrivateDjango {
13311304
/** Gets a reference to the `django.http.response` module. */
13321305
API::Node response() { result = http().getMember("response") }
13331306

1334-
/** DEPRECATED: Alias for `Response` */
1335-
deprecated module response = Response;
1336-
13371307
/** Provides models for the `django.http.response` module */
13381308
module Response {
13391309
/**
@@ -2189,9 +2159,6 @@ module PrivateDjango {
21892159
/** Gets a reference to the `django.shortcuts` module. */
21902160
API::Node shortcuts() { result = django().getMember("shortcuts") }
21912161

2192-
/** DEPRECATED: Alias for `Shortcuts` */
2193-
deprecated module shortcuts = Shortcuts;
2194-
21952162
/** Provides models for the `django.shortcuts` module */
21962163
module Shortcuts {
21972164
/**

python/ql/lib/semmle/python/frameworks/FastApi.qll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ private module FastApi {
3737
}
3838
}
3939

40-
/** DEPRECATED: Alias for ApiRouter */
41-
deprecated module APIRouter = ApiRouter;
42-
4340
// ---------------------------------------------------------------------------
4441
// routing modeling
4542
// ---------------------------------------------------------------------------

python/ql/lib/semmle/python/frameworks/RestFramework.qll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,4 @@ private module RestFramework {
359359
override string getMimetypeDefault() { none() }
360360
}
361361
}
362-
363-
/** DEPRECATED: Alias for ApiException */
364-
deprecated module APIException = ApiException;
365362
}

python/ql/lib/semmle/python/frameworks/SqlAlchemy.qll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,6 @@ module SqlAlchemy {
169169
DataFlow::Node instance() { instance(DataFlow::TypeTracker::end()).flowsTo(result) }
170170
}
171171

172-
/** DEPRECATED: Alias for DBApiConnection */
173-
deprecated module DBAPIConnection = DBApiConnection;
174-
175172
/**
176173
* Provides models for the `sqlalchemy.orm.Session` class
177174
*

python/ql/lib/semmle/python/frameworks/Stdlib.qll

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ module Stdlib {
130130
}
131131
}
132132

133-
/** DEPRECATED: Alias for HttpMessage */
134-
deprecated module HTTPMessage = HttpMessage;
135-
136133
/**
137134
* Provides models for the `http.cookies.Morsel` class
138135
*
@@ -1821,9 +1818,6 @@ private module StdlibPrivate {
18211818
/** Gets a reference to the `BaseHttpServer` module. */
18221819
API::Node baseHttpServer() { result = API::moduleImport("BaseHTTPServer") }
18231820

1824-
/** DEPRECATED: Alias for baseHttpServer */
1825-
deprecated API::Node baseHTTPServer() { result = baseHttpServer() }
1826-
18271821
/** Provides models for the `BaseHttpServer` module. */
18281822
module BaseHttpServer {
18291823
/**
@@ -1833,23 +1827,14 @@ private module StdlibPrivate {
18331827
/** Gets a reference to the `BaseHttpServer.BaseHttpRequestHandler` class. */
18341828
API::Node classRef() { result = baseHttpServer().getMember("BaseHTTPRequestHandler") }
18351829
}
1836-
1837-
/** DEPRECATED: Alias for BaseHttpRequestHandler */
1838-
deprecated module BaseHTTPRequestHandler = BaseHttpRequestHandler;
18391830
}
18401831

1841-
/** DEPRECATED: Alias for BaseHttpServer */
1842-
deprecated module BaseHTTPServer = BaseHttpServer;
1843-
18441832
// ---------------------------------------------------------------------------
18451833
// SimpleHTTPServer (Python 2 only)
18461834
// ---------------------------------------------------------------------------
18471835
/** Gets a reference to the `SimpleHttpServer` module. */
18481836
API::Node simpleHttpServer() { result = API::moduleImport("SimpleHTTPServer") }
18491837

1850-
/** DEPRECATED: Alias for simpleHttpServer */
1851-
deprecated API::Node simpleHTTPServer() { result = simpleHttpServer() }
1852-
18531838
/** Provides models for the `SimpleHttpServer` module. */
18541839
module SimpleHttpServer {
18551840
/**
@@ -1859,23 +1844,14 @@ private module StdlibPrivate {
18591844
/** Gets a reference to the `SimpleHttpServer.SimpleHttpRequestHandler` class. */
18601845
API::Node classRef() { result = simpleHttpServer().getMember("SimpleHTTPRequestHandler") }
18611846
}
1862-
1863-
/** DEPRECATED: Alias for SimpleHttpRequestHandler */
1864-
deprecated module SimpleHTTPRequestHandler = SimpleHttpRequestHandler;
18651847
}
18661848

1867-
/** DEPRECATED: Alias for SimpleHttpServer */
1868-
deprecated module SimpleHTTPServer = SimpleHttpServer;
1869-
18701849
// ---------------------------------------------------------------------------
18711850
// CGIHTTPServer (Python 2 only)
18721851
// ---------------------------------------------------------------------------
18731852
/** Gets a reference to the `CGIHTTPServer` module. */
18741853
API::Node cgiHttpServer() { result = API::moduleImport("CGIHTTPServer") }
18751854

1876-
/** DEPRECATED: Alias for cgiHttpServer */
1877-
deprecated API::Node cgiHTTPServer() { result = cgiHttpServer() }
1878-
18791855
/** Provides models for the `CGIHTTPServer` module. */
18801856
module CgiHttpServer {
18811857
/**
@@ -1919,9 +1895,6 @@ private module StdlibPrivate {
19191895
API::Node classRef() { result = server().getMember("BaseHTTPRequestHandler") }
19201896
}
19211897

1922-
/** DEPRECATED: Alias for BaseHttpRequestHandler */
1923-
deprecated module BaseHTTPRequestHandler = BaseHttpRequestHandler;
1924-
19251898
/**
19261899
* Provides models for the `http.server.SimpleHTTPRequestHandler` class (Python 3 only).
19271900
*
@@ -1932,9 +1905,6 @@ private module StdlibPrivate {
19321905
API::Node classRef() { result = server().getMember("SimpleHTTPRequestHandler") }
19331906
}
19341907

1935-
/** DEPRECATED: Alias for SimpleHttpRequestHandler */
1936-
deprecated module SimpleHTTPRequestHandler = SimpleHttpRequestHandler;
1937-
19381908
/**
19391909
* Provides models for the `http.server.CGIHTTPRequestHandler` class (Python 3 only).
19401910
*
@@ -1978,9 +1948,6 @@ private module StdlibPrivate {
19781948
HttpRequestHandlerClassDef() { this.getParent() = subclassRef().asSource().asExpr() }
19791949
}
19801950

1981-
/** DEPRECATED: Alias for HttpRequestHandlerClassDef */
1982-
deprecated class HTTPRequestHandlerClassDef = HttpRequestHandlerClassDef;
1983-
19841951
/**
19851952
* A source of instances of the `BaseHTTPRequestHandler` class or any subclass, extend this class to model new instances.
19861953
*
@@ -2352,9 +2319,6 @@ private module StdlibPrivate {
23522319
}
23532320
}
23542321

2355-
/** DEPRECATED: Alias for HttpConnection */
2356-
deprecated module HTTPConnection = HttpConnection;
2357-
23582322
/**
23592323
* Provides models for the `http.client.HTTPResponse` class
23602324
*
@@ -2424,9 +2388,6 @@ private module StdlibPrivate {
24242388
}
24252389
}
24262390

2427-
/** DEPRECATED: Alias for HttpResponse */
2428-
deprecated module HTTPResponse = HttpResponse;
2429-
24302391
// ---------------------------------------------------------------------------
24312392
// sqlite3
24322393
// ---------------------------------------------------------------------------

python/ql/lib/semmle/python/frameworks/Tornado.qll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ module Tornado {
6464
}
6565
}
6666

67-
/** DEPRECATED: Alias for HttpHeaders */
68-
deprecated module HTTPHeaders = HttpHeaders;
69-
7067
// ---------------------------------------------------------------------------
7168
// tornado
7269
// ---------------------------------------------------------------------------

python/ql/lib/semmle/python/pointsto/PointsTo.qll

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,14 +1445,6 @@ module Expressions {
14451445
)
14461446
}
14471447

1448-
deprecated predicate subscriptPointsTo(
1449-
SubscriptNode subscr, PointsToContext context, ObjectInternal value, ControlFlowNode origin,
1450-
ControlFlowNode obj, ObjectInternal objvalue
1451-
) {
1452-
subscriptPointsTo(subscr, context, value, obj, objvalue) and
1453-
origin = subscr
1454-
}
1455-
14561448
pragma[noinline]
14571449
private predicate subscriptPointsTo(
14581450
SubscriptNode subscr, PointsToContext context, ObjectInternal value, ControlFlowNode obj,
@@ -1489,14 +1481,6 @@ module Expressions {
14891481
index = subscr.getIndex()
14901482
}
14911483

1492-
deprecated predicate binaryPointsTo(
1493-
BinaryExprNode b, PointsToContext context, ObjectInternal value, ControlFlowNode origin,
1494-
ControlFlowNode operand, ObjectInternal opvalue
1495-
) {
1496-
binaryPointsTo(b, context, value, operand, opvalue) and
1497-
origin = b
1498-
}
1499-
15001484
/**
15011485
* Tracking too many binary expressions is likely to kill performance, so just say anything other than addition or bitwise or is 'unknown'.
15021486
*/
@@ -1521,14 +1505,6 @@ module Expressions {
15211505
)
15221506
}
15231507

1524-
deprecated predicate addPointsTo(
1525-
BinaryExprNode b, PointsToContext context, ObjectInternal value, ControlFlowNode origin,
1526-
ControlFlowNode operand, ObjectInternal opvalue
1527-
) {
1528-
addPointsTo(b, context, value, operand, opvalue) and
1529-
origin = b
1530-
}
1531-
15321508
pragma[noinline]
15331509
private predicate addPointsTo(
15341510
BinaryExprNode b, PointsToContext context, ObjectInternal value, ControlFlowNode operand,
@@ -1545,14 +1521,6 @@ module Expressions {
15451521
)
15461522
}
15471523

1548-
deprecated predicate bitOrPointsTo(
1549-
BinaryExprNode b, PointsToContext context, ObjectInternal value, ControlFlowNode origin,
1550-
ControlFlowNode operand, ObjectInternal opvalue
1551-
) {
1552-
bitOrPointsTo(b, context, value, operand, opvalue) and
1553-
origin = b
1554-
}
1555-
15561524
pragma[noinline]
15571525
private predicate bitOrPointsTo(
15581526
BinaryExprNode b, PointsToContext context, ObjectInternal value, ControlFlowNode operand,
@@ -1577,14 +1545,6 @@ module Expressions {
15771545
value = obj.intValue()
15781546
}
15791547

1580-
deprecated predicate unaryPointsTo(
1581-
UnaryExprNode u, PointsToContext context, ObjectInternal value, ControlFlowNode origin,
1582-
ControlFlowNode operand, ObjectInternal opvalue
1583-
) {
1584-
unaryPointsTo(u, context, value, operand, opvalue) and
1585-
origin = u
1586-
}
1587-
15881548
pragma[noinline]
15891549
private predicate unaryPointsTo(
15901550
UnaryExprNode u, PointsToContext context, ObjectInternal value, ControlFlowNode operand,
@@ -1603,14 +1563,6 @@ module Expressions {
16031563
)
16041564
}
16051565

1606-
deprecated predicate builtinCallPointsTo(
1607-
CallNode call, PointsToContext context, ObjectInternal value, ControlFlowNode origin,
1608-
ControlFlowNode arg, ObjectInternal argvalue
1609-
) {
1610-
builtinCallPointsTo(call, context, value, arg, argvalue) and
1611-
origin = call
1612-
}
1613-
16141566
pragma[noinline]
16151567
private predicate builtinCallPointsTo(
16161568
CallNode call, PointsToContext context, ObjectInternal value, ControlFlowNode arg,

0 commit comments

Comments
 (0)