Skip to content

Commit 7f44713

Browse files
committed
C#: Remove hasNotNullFlowState and hasMaybeNullFlowState
1 parent f2380d3 commit 7f44713

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

csharp/ql/lib/semmle/code/csharp/controlflow/Guards.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,8 +1186,6 @@ module Internal {
11861186
or
11871187
e instanceof ArrayCreation
11881188
or
1189-
e.hasNotNullFlowState()
1190-
or
11911189
e.hasValue() and
11921190
exists(Expr stripped | stripped = e.stripCasts() |
11931191
not stripped instanceof NullLiteral and

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,6 @@ class Expr extends ControlFlowElement, @expr {
108108
* that uses the result of this expression.
109109
*/
110110
override Element getParent() { result = ControlFlowElement.super.getParent() }
111-
112-
/** Holds if the nullable flow state of this expression is not null. */
113-
predicate hasNotNullFlowState() { expr_flowstate(this, 1) }
114-
115-
/** Holds if the nullable flow state of this expression may be null. */
116-
predicate hasMaybeNullFlowState() { expr_flowstate(this, 2) }
117111
}
118112

119113
/**

0 commit comments

Comments
 (0)