Skip to content

Commit ae22263

Browse files
authored
Merge pull request #21709 from jketema/depr
C++: Remove deprecated code deprecated more than a year ago
2 parents 6e0bee7 + 9ef088d commit ae22263

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
category: breaking
3+
---
4+
* The deprecated `NonThrowingFunction` class has been removed, use `NonCppThrowingFunction` instead.
5+
* The deprecated `ThrowingFunction` class has been removed, use `AlwaysSehThrowingFunction` instead.

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,3 @@ import semmle.code.cpp.models.Models
1111
* The function may still raise a structured exception handling (SEH) exception.
1212
*/
1313
abstract class NonCppThrowingFunction extends Function { }
14-
15-
/**
16-
* A function that is guaranteed to never throw.
17-
*
18-
* DEPRECATED: use `NonCppThrowingFunction` instead.
19-
*/
20-
deprecated class NonThrowingFunction = NonCppThrowingFunction;

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,6 @@ import semmle.code.cpp.Function
1010
import semmle.code.cpp.models.Models
1111
import semmle.code.cpp.models.interfaces.FunctionInputsAndOutputs
1212

13-
/**
14-
* A function that is known to raise an exception.
15-
*
16-
* DEPRECATED: use `AlwaysSehThrowingFunction` instead.
17-
*/
18-
abstract deprecated class ThrowingFunction extends Function {
19-
/**
20-
* Holds if this function may throw an exception during evaluation.
21-
* If `unconditional` is `true` the function always throws an exception.
22-
*/
23-
abstract predicate mayThrowException(boolean unconditional);
24-
}
25-
2613
/**
2714
* A function that unconditionally raises a structured exception handling (SEH) exception.
2815
*/

0 commit comments

Comments
 (0)