diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 4b642c1fb..d44f43639 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -1673,9 +1673,6 @@ private: if (tok.varId()) { - if (array && !Token::simpleMatch(tok.next(), "[")) - return &tok; - if (Token::simpleMatch(tok.previous(), "=")) { if (Token::Match(tok.tokAt(-3), "& %var% ="))