Skip to content

Commit f96d6ac

Browse files
committed
delete old deprecations
1 parent 1a19909 commit f96d6ac

File tree

35 files changed

+0
-549
lines changed

35 files changed

+0
-549
lines changed

cpp/ql/lib/semmle/code/cpp/Class.qll

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -227,18 +227,6 @@ class Class extends UserType {
227227
result = this.accessOfBaseMember(member.getDeclaringType(), member.getASpecifier())
228228
}
229229

230-
/**
231-
* DEPRECATED: name changed to `hasImplicitCopyConstructor` to reflect that
232-
* `= default` members are no longer included.
233-
*/
234-
deprecated predicate hasGeneratedCopyConstructor() { this.hasImplicitCopyConstructor() }
235-
236-
/**
237-
* DEPRECATED: name changed to `hasImplicitCopyAssignmentOperator` to
238-
* reflect that `= default` members are no longer included.
239-
*/
240-
deprecated predicate hasGeneratedCopyAssignmentOperator() { this.hasImplicitCopyConstructor() }
241-
242230
/**
243231
* Holds if this class, struct or union has an implicitly-declared copy
244232
* constructor that is not _deleted_. This predicate is more accurate than

cpp/ql/lib/semmle/code/cpp/XML.qll

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -108,20 +108,6 @@ class XmlFile extends XmlParent, File {
108108
/** Gets the name of this XML file. */
109109
override string getName() { result = File.super.getAbsolutePath() }
110110

111-
/**
112-
* DEPRECATED: Use `getAbsolutePath()` instead.
113-
*
114-
* Gets the path of this XML file.
115-
*/
116-
deprecated string getPath() { result = this.getAbsolutePath() }
117-
118-
/**
119-
* DEPRECATED: Use `getParentContainer().getAbsolutePath()` instead.
120-
*
121-
* Gets the path of the folder that contains this XML file.
122-
*/
123-
deprecated string getFolder() { result = this.getParentContainer().getAbsolutePath() }
124-
125111
/** Gets the encoding of this XML file. */
126112
string getEncoding() { xmlEncoding(this, result) }
127113

cpp/ql/lib/semmle/code/cpp/commons/Synchronization.qll

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -59,26 +59,6 @@ abstract class MutexType extends Type {
5959
* Gets a call that unlocks any mutex of this type.
6060
*/
6161
FunctionCall getUnlockAccess() { this.unlockAccess(result, _) }
62-
63-
/**
64-
* DEPRECATED: use mustlockAccess(fc, arg) instead.
65-
*/
66-
deprecated Function getMustlockFunction() { result = this.getMustlockAccess().getTarget() }
67-
68-
/**
69-
* DEPRECATED: use trylockAccess(fc, arg) instead.
70-
*/
71-
deprecated Function getTrylockFunction() { result = this.getTrylockAccess().getTarget() }
72-
73-
/**
74-
* DEPRECATED: use lockAccess(fc, arg) instead.
75-
*/
76-
deprecated Function getLockFunction() { result = this.getLockAccess().getTarget() }
77-
78-
/**
79-
* DEPRECATED: use unlockAccess(fc, arg) instead.
80-
*/
81-
deprecated Function getUnlockFunction() { result = this.getUnlockAccess().getTarget() }
8262
}
8363

8464
/**

cpp/ql/lib/semmle/code/cpp/controlflow/SubBasicBlocks.qll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,6 @@ class SubBasicBlock extends ControlFlowNodeBase {
7575
)
7676
}
7777

78-
/**
79-
* DEPRECATED: use `getRankInBasicBlock` instead. Note that this predicate
80-
* returns a 0-based position, while `getRankInBasicBlock` returns a 1-based
81-
* position.
82-
*/
83-
deprecated int getPosInBasicBlock(BasicBlock bb) { result = this.getRankInBasicBlock(bb) - 1 }
84-
8578
pragma[noinline]
8679
private int getIndexInBasicBlock(BasicBlock bb) { this = bb.getNode(result) }
8780

cpp/ql/lib/semmle/code/cpp/dataflow/internal/SubBasicBlocks.qll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,6 @@ class SubBasicBlock extends ControlFlowNodeBase {
7575
)
7676
}
7777

78-
/**
79-
* DEPRECATED: use `getRankInBasicBlock` instead. Note that this predicate
80-
* returns a 0-based position, while `getRankInBasicBlock` returns a 1-based
81-
* position.
82-
*/
83-
deprecated int getPosInBasicBlock(BasicBlock bb) { result = this.getRankInBasicBlock(bb) - 1 }
84-
8578
pragma[noinline]
8679
private int getIndexInBasicBlock(BasicBlock bb) { this = bb.getNode(result) }
8780

cpp/ql/lib/semmle/code/cpp/exprs/Expr.qll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -719,13 +719,6 @@ class ReferenceToExpr extends Conversion, @reference_to {
719719
class PointerDereferenceExpr extends UnaryOperation, @indirect {
720720
override string getAPrimaryQlClass() { result = "PointerDereferenceExpr" }
721721

722-
/**
723-
* DEPRECATED: Use getOperand() instead.
724-
*
725-
* Gets the expression that is being dereferenced.
726-
*/
727-
deprecated Expr getExpr() { result = this.getOperand() }
728-
729722
override string getOperator() { result = "*" }
730723

731724
override int getPrecedence() { result = 16 }

cpp/ql/lib/semmle/code/cpp/ir/implementation/aliased_ssa/Operand.qll

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,6 @@ class Operand extends TStageOperand {
8787
this.getDefinitionOverlap() instanceof MustExactlyOverlap
8888
}
8989

90-
/**
91-
* DEPRECATED: renamed to `getUse`.
92-
*
93-
* Gets the `Instruction` that consumes this operand.
94-
*/
95-
deprecated final Instruction getUseInstruction() { result = this.getUse() }
96-
97-
/**
98-
* DEPRECATED: use `getAnyDef` or `getDef`. The exact replacement for this
99-
* predicate is `getAnyDef`, but most uses of this predicate should probably
100-
* be replaced with `getDef`.
101-
*
102-
* Gets the `Instruction` whose result is the value of the operand.
103-
*/
104-
deprecated final Instruction getDefinitionInstruction() { result = this.getAnyDef() }
105-
10690
/**
10791
* Gets the overlap relationship between the operand's definition and its use.
10892
*/

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/Operand.qll

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,6 @@ class Operand extends TStageOperand {
8787
this.getDefinitionOverlap() instanceof MustExactlyOverlap
8888
}
8989

90-
/**
91-
* DEPRECATED: renamed to `getUse`.
92-
*
93-
* Gets the `Instruction` that consumes this operand.
94-
*/
95-
deprecated final Instruction getUseInstruction() { result = this.getUse() }
96-
97-
/**
98-
* DEPRECATED: use `getAnyDef` or `getDef`. The exact replacement for this
99-
* predicate is `getAnyDef`, but most uses of this predicate should probably
100-
* be replaced with `getDef`.
101-
*
102-
* Gets the `Instruction` whose result is the value of the operand.
103-
*/
104-
deprecated final Instruction getDefinitionInstruction() { result = this.getAnyDef() }
105-
10690
/**
10791
* Gets the overlap relationship between the operand's definition and its use.
10892
*/

cpp/ql/lib/semmle/code/cpp/ir/implementation/unaliased_ssa/Operand.qll

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,6 @@ class Operand extends TStageOperand {
8787
this.getDefinitionOverlap() instanceof MustExactlyOverlap
8888
}
8989

90-
/**
91-
* DEPRECATED: renamed to `getUse`.
92-
*
93-
* Gets the `Instruction` that consumes this operand.
94-
*/
95-
deprecated final Instruction getUseInstruction() { result = this.getUse() }
96-
97-
/**
98-
* DEPRECATED: use `getAnyDef` or `getDef`. The exact replacement for this
99-
* predicate is `getAnyDef`, but most uses of this predicate should probably
100-
* be replaced with `getDef`.
101-
*
102-
* Gets the `Instruction` whose result is the value of the operand.
103-
*/
104-
deprecated final Instruction getDefinitionInstruction() { result = this.getAnyDef() }
105-
10690
/**
10791
* Gets the overlap relationship between the operand's definition and its use.
10892
*/

cpp/ql/lib/semmle/code/cpp/models/interfaces/FunctionInputsAndOutputs.qll

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ class FunctionInput extends TFunctionInput {
4040
*/
4141
predicate isParameter(ParameterIndex index) { none() }
4242

43-
/**
44-
* Holds if this is the input value of the parameter with index `index`.
45-
* DEPRECATED: Use `isParameter(index)` instead.
46-
*/
47-
deprecated final predicate isInParameter(ParameterIndex index) { this.isParameter(index) }
48-
4943
/**
5044
* Holds if this is the input value pointed to (through `ind` number of indirections) by a
5145
* pointer parameter to a function, or the input value referred to by a reference parameter
@@ -84,16 +78,6 @@ class FunctionInput extends TFunctionInput {
8478
*/
8579
predicate isParameterDeref(ParameterIndex index) { this.isParameterDeref(index, 1) }
8680

87-
/**
88-
* Holds if this is the input value pointed to by a pointer parameter to a function, or the input
89-
* value referred to by a reference parameter to a function, where the parameter has index
90-
* `index`.
91-
* DEPRECATED: Use `isParameterDeref(index)` instead.
92-
*/
93-
deprecated final predicate isInParameterPointer(ParameterIndex index) {
94-
this.isParameterDeref(index)
95-
}
96-
9781
/**
9882
* Holds if this is the input value pointed to by the `this` pointer of an instance member
9983
* function.
@@ -124,13 +108,6 @@ class FunctionInput extends TFunctionInput {
124108
*/
125109
predicate isQualifierObject() { this.isQualifierObject(1) }
126110

127-
/**
128-
* Holds if this is the input value pointed to by the `this` pointer of an instance member
129-
* function.
130-
* DEPRECATED: Use `isQualifierObject()` instead.
131-
*/
132-
deprecated final predicate isInQualifier() { this.isQualifierObject() }
133-
134111
/**
135112
* Holds if this is the input value of the `this` pointer of an instance member function.
136113
*
@@ -396,16 +373,6 @@ class FunctionOutput extends TFunctionOutput {
396373
*/
397374
predicate isParameterDeref(ParameterIndex i, int ind) { ind = 1 and this.isParameterDeref(i) }
398375

399-
/**
400-
* Holds if this is the output value pointed to by a pointer parameter to a function, or the
401-
* output value referred to by a reference parameter to a function, where the parameter has
402-
* index `index`.
403-
* DEPRECATED: Use `isParameterDeref(index)` instead.
404-
*/
405-
deprecated final predicate isOutParameterPointer(ParameterIndex index) {
406-
this.isParameterDeref(index)
407-
}
408-
409376
/**
410377
* Holds if this is the output value pointed to by the `this` pointer of an instance member
411378
* function.
@@ -436,13 +403,6 @@ class FunctionOutput extends TFunctionOutput {
436403
*/
437404
predicate isQualifierObject(int ind) { ind = 1 and this.isQualifierObject() }
438405

439-
/**
440-
* Holds if this is the output value pointed to by the `this` pointer of an instance member
441-
* function.
442-
* DEPRECATED: Use `isQualifierObject()` instead.
443-
*/
444-
deprecated final predicate isOutQualifier() { this.isQualifierObject() }
445-
446406
/**
447407
* Holds if this is the value returned by a function.
448408
*
@@ -462,12 +422,6 @@ class FunctionOutput extends TFunctionOutput {
462422
*/
463423
predicate isReturnValue() { none() }
464424

465-
/**
466-
* Holds if this is the value returned by a function.
467-
* DEPRECATED: Use `isReturnValue()` instead.
468-
*/
469-
deprecated final predicate isOutReturnValue() { this.isReturnValue() }
470-
471425
/**
472426
* Holds if this is the output value pointed to by the return value of a function, if the function
473427
* returns a pointer, or the output value referred to by the return value of a function, if the
@@ -508,14 +462,6 @@ class FunctionOutput extends TFunctionOutput {
508462
*/
509463
predicate isReturnValueDeref(int ind) { ind = 1 and this.isReturnValueDeref() }
510464

511-
/**
512-
* Holds if this is the output value pointed to by the return value of a function, if the function
513-
* returns a pointer, or the output value referred to by the return value of a function, if the
514-
* function returns a reference.
515-
* DEPRECATED: Use `isReturnValueDeref()` instead.
516-
*/
517-
deprecated final predicate isOutReturnPointer() { this.isReturnValueDeref() }
518-
519465
/**
520466
* Holds if `i >= 0` and `isParameterDeref(i, ind)` holds for this is the value, or
521467
* if `i = -1` and `isQualifierObject(ind)` holds for this value.

0 commit comments

Comments
 (0)