Skip to content

Commit f3531f1

Browse files
Update checkcondition.cpp
1 parent ec77e31 commit f3531f1

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

lib/checkcondition.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,11 +1524,6 @@ void CheckCondition::alwaysTrueFalse()
15241524
}
15251525
if (!tok->hasKnownIntValue())
15261526
continue;
1527-
if (Token::Match(tok->previous(), "%name% (") && tok->previous()->function()) {
1528-
const Function* f = tok->previous()->function();
1529-
if (f->functionScope && Token::Match(f->functionScope->bodyStart, "{ return true|false ;"))
1530-
continue;
1531-
}
15321527
const Token* condition = nullptr;
15331528
{
15341529
// is this a condition..

0 commit comments

Comments
 (0)