@@ -68,9 +68,8 @@ abstract class BufferWrite extends Expr {
68
68
/**
69
69
* Gets an upper bound to the amount of data that's being written (if one
70
70
* can be found).
71
- * DEPRECATED: `getMaxData/1` should be used and overridden instead.
72
71
*/
73
- deprecated int getMaxData ( ) { none ( ) }
72
+ int getMaxData ( ) { none ( ) }
74
73
75
74
/**
76
75
* Gets an upper bound to the amount of data that's being written (if one
@@ -85,9 +84,8 @@ abstract class BufferWrite extends Expr {
85
84
* can be found), except that float to string conversions are assumed to be
86
85
* much smaller (8 bytes) than their true maximum length. This can be
87
86
* helpful in determining the cause of a buffer overflow issue.
88
- * DEPRECATED: `getMaxDataLimited/1` should be used and overridden instead.
89
87
*/
90
- deprecated int getMaxDataLimited ( ) { result = getMaxData ( ) }
88
+ int getMaxDataLimited ( ) { result = getMaxData ( ) }
91
89
92
90
/**
93
91
* Gets an upper bound to the amount of data that's being written (if one
@@ -163,7 +161,7 @@ class StrCopyBW extends BufferWriteCall {
163
161
164
162
override int getMaxData ( BufferWriteEstimationReason reason ) { result = getMaxDataImpl ( reason ) }
165
163
166
- deprecated override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
164
+ override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
167
165
}
168
166
169
167
/**
@@ -207,7 +205,7 @@ class StrCatBW extends BufferWriteCall {
207
205
208
206
override int getMaxData ( BufferWriteEstimationReason reason ) { result = getMaxDataImpl ( reason ) }
209
207
210
- deprecated override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
208
+ override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
211
209
}
212
210
213
211
/**
@@ -273,7 +271,7 @@ class SprintfBW extends BufferWriteCall {
273
271
274
272
override int getMaxData ( BufferWriteEstimationReason reason ) { result = getMaxDataImpl ( reason ) }
275
273
276
- deprecated override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
274
+ override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
277
275
278
276
private int getMaxDataLimitedImpl ( BufferWriteEstimationReason reason ) {
279
277
exists ( FormatLiteral fl |
@@ -286,7 +284,7 @@ class SprintfBW extends BufferWriteCall {
286
284
result = getMaxDataLimitedImpl ( reason )
287
285
}
288
286
289
- deprecated override int getMaxDataLimited ( ) { result = max ( getMaxDataLimitedImpl ( _) ) }
287
+ override int getMaxDataLimited ( ) { result = max ( getMaxDataLimitedImpl ( _) ) }
290
288
}
291
289
292
290
/**
@@ -386,7 +384,7 @@ class SnprintfBW extends BufferWriteCall {
386
384
387
385
override int getMaxData ( BufferWriteEstimationReason reason ) { result = getMaxDataImpl ( reason ) }
388
386
389
- deprecated override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
387
+ override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
390
388
391
389
private int getMaxDataLimitedImpl ( BufferWriteEstimationReason reason ) {
392
390
exists ( FormatLiteral fl |
@@ -399,7 +397,7 @@ class SnprintfBW extends BufferWriteCall {
399
397
result = getMaxDataLimitedImpl ( reason )
400
398
}
401
399
402
- deprecated override int getMaxDataLimited ( ) { result = max ( getMaxDataLimitedImpl ( _) ) }
400
+ override int getMaxDataLimited ( ) { result = max ( getMaxDataLimitedImpl ( _) ) }
403
401
}
404
402
405
403
/**
@@ -499,7 +497,7 @@ class ScanfBW extends BufferWrite {
499
497
500
498
override int getMaxData ( BufferWriteEstimationReason reason ) { result = getMaxDataImpl ( reason ) }
501
499
502
- deprecated override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
500
+ override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
503
501
504
502
override string getBWDesc ( ) {
505
503
exists ( FunctionCall fc |
@@ -540,5 +538,5 @@ class RealpathBW extends BufferWriteCall {
540
538
541
539
override int getMaxData ( BufferWriteEstimationReason reason ) { result = getMaxDataImpl ( reason ) }
542
540
543
- deprecated override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
541
+ override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
544
542
}
0 commit comments