From 5135bae777cd85f834000c6ed66c7d59a3cedeb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 23 Nov 2015 16:53:30 +0100 Subject: [PATCH] Tokenizer: Cleanup the Tokenizer::tokenizeCondition used by the preprocessor --- lib/tokenize.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 57fc6ceef..80d87b2a3 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -1799,9 +1799,6 @@ bool Tokenizer::tokenizeCondition(const std::string &code) // replace 'NULL' and similar '0'-defined macros with '0' simplifyNull(); - // replace 'sin(0)' to '0' and other similar math expressions - simplifyMathExpressions(); - // combine "- %num%" concatenateNegativeNumberAndAnyPositive(); @@ -1824,9 +1821,6 @@ bool Tokenizer::tokenizeCondition(const std::string &code) simplifyCAlternativeTokens(); - // Convert e.g. atol("0") into 0 - simplifyMathFunctions(); - simplifyDoublePlusAndDoubleMinus(); return true;