Skip to content

Commit 01eabc8

Browse files
committed
Remove redundant inConditionalContext
1 parent f07ab45 commit 01eabc8

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,6 @@ module GoCfg {
427427
l = n.(Go::ContinueStmt).getLabel()
428428
}
429429

430-
predicate inConditionalContext(Ast::AstNode n, ConditionKind kind) {
431-
kind.isBoolean() and
432-
n = any(Go::ForStmt fs).getCond()
433-
}
434-
435430
predicate preOrderExpr(Ast::Expr e) {
436431
// The call of a `defer` statement is not invoked at the statement
437432
// itself; its callee and arguments are evaluated in place, but the call

0 commit comments

Comments
 (0)