delete all dead code · Sam-at-git/codeql@3bf5e06 · GitHub
Skip to content

Commit 3bf5e06

Browse files
committed
delete all dead code
1 parent 27d41cb commit 3bf5e06

30 files changed

Lines changed: 0 additions & 259 deletions

File tree

‎cpp/ql/lib/semmle/code/cpp/controlflow/internal/CFG.qll‎

Lines changed: 0 additions & 20 deletions

‎cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaImplCommon.qll‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -287,20 +287,6 @@ private module SsaDefReaches {
287287
)
288288
}
289289

290-
/**
291-
* Holds if the SSA definition of `v` at `def` reaches uncertain SSA definition
292-
* `redef` in the same basic block, without crossing another SSA definition of `v`.
293-
*/
294-
predicate ssaDefReachesUncertainDefWithinBlock(
295-
SourceVariable v, Definition def, UncertainWriteDefinition redef
296-
) {
297-
exists(BasicBlock bb, int rnk, int i |
298-
ssaDefReachesRank(bb, def, rnk, v) and
299-
rnk = ssaRefRank(bb, i, v, SsaDef()) - 1 and
300-
redef.definesAt(v, bb, i)
301-
)
302-
}
303-
304290
/**
305291
* Same as `ssaRefRank()`, but restricted to a particular SSA definition `def`.
306292
*/

‎cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/reachability/DominanceInternal.qll‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
private import ReachableBlock as Reachability
22

3-
private module ReachabilityGraph = Reachability::Graph;
4-
53
module Graph {
64
import Reachability::Graph
75

‎cpp/ql/lib/semmle/code/cpp/ir/implementation/unaliased_ssa/internal/reachability/DominanceInternal.qll‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
private import ReachableBlock as Reachability
22

3-
private module ReachabilityGraph = Reachability::Graph;
4-
53
module Graph {
64
import Reachability::Graph
75

‎csharp/ql/lib/semmle/code/cil/internal/SsaImplCommon.qll‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -287,20 +287,6 @@ private module SsaDefReaches {
287287
)
288288
}
289289

290-
/**
291-
* Holds if the SSA definition of `v` at `def` reaches uncertain SSA definition
292-
* `redef` in the same basic block, without crossing another SSA definition of `v`.
293-
*/
294-
predicate ssaDefReachesUncertainDefWithinBlock(
295-
SourceVariable v, Definition def, UncertainWriteDefinition redef
296-
) {
297-
exists(BasicBlock bb, int rnk, int i |
298-
ssaDefReachesRank(bb, def, rnk, v) and
299-
rnk = ssaRefRank(bb, i, v, SsaDef()) - 1 and
300-
redef.definesAt(v, bb, i)
301-
)
302-
}
303-
304290
/**
305291
* Same as `ssaRefRank()`, but restricted to a particular SSA definition `def`.
306292
*/

‎csharp/ql/lib/semmle/code/csharp/controlflow/internal/Splitting.qll‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -511,13 +511,6 @@ module FinallySplitting {
511511
predicate isEntryNode() { first(try.getFinally(), this) }
512512
}
513513

514-
/** A control flow element that does not belong to a `finally` block. */
515-
private class NonFinallyControlFlowElement extends ControlFlowElement {
516-
NonFinallyControlFlowElement() {
517-
not this = any(Statements::TryStmtTree t).getAFinallyDescendant()
518-
}
519-
}
520-
521514
/**
522515
* A split for elements belonging to a `finally` block, which determines how to
523516
* continue execution after leaving the `finally` block. For example, in

‎csharp/ql/lib/semmle/code/csharp/controlflow/internal/pressa/SsaImplCommon.qll‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -287,20 +287,6 @@ private module SsaDefReaches {
287287
)
288288
}
289289

290-
/**
291-
* Holds if the SSA definition of `v` at `def` reaches uncertain SSA definition
292-
* `redef` in the same basic block, without crossing another SSA definition of `v`.
293-
*/
294-
predicate ssaDefReachesUncertainDefWithinBlock(
295-
SourceVariable v, Definition def, UncertainWriteDefinition redef
296-
) {
297-
exists(BasicBlock bb, int rnk, int i |
298-
ssaDefReachesRank(bb, def, rnk, v) and
299-
rnk = ssaRefRank(bb, i, v, SsaDef()) - 1 and
300-
redef.definesAt(v, bb, i)
301-
)
302-
}
303-
304290
/**
305291
* Same as `ssaRefRank()`, but restricted to a particular SSA definition `def`.
306292
*/

‎csharp/ql/lib/semmle/code/csharp/dataflow/internal/SsaImplCommon.qll‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -287,20 +287,6 @@ private module SsaDefReaches {
287287
)
288288
}
289289

290-
/**
291-
* Holds if the SSA definition of `v` at `def` reaches uncertain SSA definition
292-
* `redef` in the same basic block, without crossing another SSA definition of `v`.
293-
*/
294-
predicate ssaDefReachesUncertainDefWithinBlock(
295-
SourceVariable v, Definition def, UncertainWriteDefinition redef
296-
) {
297-
exists(BasicBlock bb, int rnk, int i |
298-
ssaDefReachesRank(bb, def, rnk, v) and
299-
rnk = ssaRefRank(bb, i, v, SsaDef()) - 1 and
300-
redef.definesAt(v, bb, i)
301-
)
302-
}
303-
304290
/**
305291
* Same as `ssaRefRank()`, but restricted to a particular SSA definition `def`.
306292
*/

‎csharp/ql/lib/semmle/code/csharp/dataflow/internal/basessa/SsaImplCommon.qll‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -287,20 +287,6 @@ private module SsaDefReaches {
287287
)
288288
}
289289

290-
/**
291-
* Holds if the SSA definition of `v` at `def` reaches uncertain SSA definition
292-
* `redef` in the same basic block, without crossing another SSA definition of `v`.
293-
*/
294-
predicate ssaDefReachesUncertainDefWithinBlock(
295-
SourceVariable v, Definition def, UncertainWriteDefinition redef
296-
) {
297-
exists(BasicBlock bb, int rnk, int i |
298-
ssaDefReachesRank(bb, def, rnk, v) and
299-
rnk = ssaRefRank(bb, i, v, SsaDef()) - 1 and
300-
redef.definesAt(v, bb, i)
301-
)
302-
}
303-
304290
/**
305291
* Same as `ssaRefRank()`, but restricted to a particular SSA definition `def`.
306292
*/

‎csharp/ql/lib/semmle/code/csharp/frameworks/ServiceStack.qll‎

Lines changed: 0 additions & 7 deletions

0 commit comments

Comments
 (0)