File tree 5 files changed +1
-39
lines changed
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal
csharp/ql/lib/semmle/code/csharp/dataflow/internal
python/ql/lib/semmle/python/frameworks/internal
5 files changed +1
-39
lines changed Original file line number Diff line number Diff line change @@ -266,9 +266,6 @@ Instruction getSourceAddressFromNode(Node node) {
266
266
result = getSourceAddress ( node .asOperand ( ) .( SideEffectOperand ) .getUse ( ) )
267
267
}
268
268
269
- /** Gets the source value of `instr` if it's an instruction that behaves like a `LoadInstruction`. */
270
- Instruction getSourceValue ( Instruction instr ) { result = getSourceValueOperand ( instr ) .getDef ( ) }
271
-
272
269
/**
273
270
* Gets the operand that represents the source value of `instr` if it's an instruction
274
271
* that behaves like a `LoadInstruction`.
Original file line number Diff line number Diff line change @@ -31,29 +31,3 @@ predicate alwaysNotNullCallable(Callable c) {
31
31
forex ( Expr e | c .canReturn ( e ) | e instanceof NonNullExpr )
32
32
)
33
33
}
34
-
35
- /** Holds if callable 'c' always throws an exception. */
36
- predicate alwaysThrowsCallable ( Callable c ) {
37
- finalCallable ( c ) and
38
- (
39
- forex ( ControlFlow:: Node pre | pre = c .getExitPoint ( ) .getAPredecessor ( ) |
40
- pre .getElement ( ) instanceof ThrowElement
41
- )
42
- or
43
- exists ( CIL:: Method m | m .matchesHandle ( c ) | CR:: alwaysThrowsMethod ( m ) )
44
- )
45
- }
46
-
47
- /** Holds if callable `c` always throws exception `ex`. */
48
- predicate alwaysThrowsException ( Callable c , Class ex ) {
49
- finalCallable ( c ) and
50
- (
51
- forex ( ControlFlow:: Node pre | pre = c .getExitPoint ( ) .getAPredecessor ( ) |
52
- pre .getElement ( ) .( ThrowElement ) .getThrownExceptionType ( ) = ex
53
- )
54
- or
55
- exists ( CIL:: Method m , CIL:: Type t | m .matchesHandle ( c ) |
56
- CR:: alwaysThrowsException ( m , t ) and t .matchesHandle ( ex )
57
- )
58
- )
59
- }
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ module PEP249 {
121
121
}
122
122
123
123
/** Gets a reference to a result of calling the `cursor` method on a database connection. */
124
- private DataFlow:: TypeTrackingNode methodResult ( DataFlow:: TypeTracker t ) {
124
+ deprecated private DataFlow:: TypeTrackingNode methodResult ( DataFlow:: TypeTracker t ) {
125
125
t .start ( ) and
126
126
result .asCfgNode ( ) .( CallNode ) .getFunction ( ) = methodRef ( ) .asCfgNode ( )
127
127
or
Original file line number Diff line number Diff line change @@ -200,10 +200,6 @@ module EnsureSplitting {
200
200
result = ConditionalCompletionSplitting:: getNextListOrder ( ) + kind .getNestLevel ( )
201
201
}
202
202
203
- int getNextListOrder ( ) {
204
- result = max ( [ getListOrder ( _) + 1 , ConditionalCompletionSplitting:: getNextListOrder ( ) ] )
205
- }
206
-
207
203
private class EnsureSplitKind extends SplitKind , TEnsureSplitKind {
208
204
private int nestLevel ;
209
205
Original file line number Diff line number Diff line change @@ -579,11 +579,6 @@ private module ArgumentNodes {
579
579
}
580
580
}
581
581
582
- /** A data-flow node that represents the `self` argument of a call. */
583
- class SelfArgumentNode extends ExplicitArgumentNode {
584
- SelfArgumentNode ( ) { arg .isArgumentOf ( _, any ( ArgumentPosition pos | pos .isSelf ( ) ) ) }
585
- }
586
-
587
582
/** A data-flow node that represents a block argument. */
588
583
class BlockArgumentNode extends ArgumentNode {
589
584
BlockArgumentNode ( ) {
You can’t perform that action at this time.
0 commit comments