Skip to content

Commit 5323ae8

Browse files
committed
Token: removed unused getKnownValue()
1 parent 10198b3 commit 5323ae8

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

lib/token.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2538,14 +2538,6 @@ bool Token::hasKnownSymbolicValue(const Token* tok) const
25382538
});
25392539
}
25402540

2541-
const ValueFlow::Value* Token::getKnownValue() const
2542-
{
2543-
if (!mImpl->mValues)
2544-
return nullptr;
2545-
auto it = std::find_if(mImpl->mValues->begin(), mImpl->mValues->end(), std::mem_fn(&ValueFlow::Value::isKnown));
2546-
return it == mImpl->mValues->end() ? nullptr : &*it;
2547-
}
2548-
25492541
const ValueFlow::Value* Token::getKnownValue(ValueFlow::Value::ValueType t) const
25502542
{
25512543
if (!mImpl->mValues)

lib/token.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,6 @@ class CPPCHECKLIB Token {
13071307
bool hasKnownValue(ValueFlow::Value::ValueType t) const;
13081308
bool hasKnownSymbolicValue(const Token* tok) const;
13091309

1310-
const ValueFlow::Value* getKnownValue() const;
13111310
const ValueFlow::Value* getKnownValue(ValueFlow::Value::ValueType t) const;
13121311
MathLib::bigint getKnownIntValue() const {
13131312
assert(!mImpl->mValues->empty());

0 commit comments

Comments
 (0)