From bf921251e9bdf81018738a8e71f248b46118045d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 26 Jul 2015 22:21:26 +0200 Subject: [PATCH] TestOther: code cleanup --- test/testother.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/test/testother.cpp b/test/testother.cpp index f53d06945..5bca204c3 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -168,7 +168,7 @@ private: TEST_CASE(test_isSameExpression); } - void check(const char raw_code[], const char *filename = nullptr, bool experimental = false, bool inconclusive = true, bool runSimpleChecks=true, Settings* settings = 0) { + void check(const char code[], const char *filename = nullptr, bool experimental = false, bool inconclusive = true, bool runSimpleChecks=true, Settings* settings = 0) { // Clear the error buffer.. errout.str(""); @@ -183,14 +183,6 @@ private: settings->inconclusive = inconclusive; settings->experimental = experimental; - // Preprocess file.. - Preprocessor preprocessor(*settings); - std::list configurations; - std::string filedata = ""; - std::istringstream fin(raw_code); - preprocessor.preprocess(fin, filedata, configurations, "", settings->_includePaths); - const std::string code = preprocessor.getcode(filedata, "", ""); - // Tokenize.. Tokenizer tokenizer(settings, this); std::istringstream istr(code);