From c5064e459145cf971fe0e89aaed043ab5709e4f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 20 Jul 2011 06:59:27 +0200 Subject: [PATCH] Cmdlineparser: Removed deprecated flag --unused-functions --- cli/cmdlineparser.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index c61a9d117..fcb3d18f0 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -258,17 +258,6 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[]) else if (strcmp(argv[i], "-q") == 0 || strcmp(argv[i], "--quiet") == 0) _settings->_errorsOnly = true; - // Check if there are unused functions - else if (strcmp(argv[i], "--unused-functions") == 0) - { - const std::string errmsg = _settings->addEnabled("unusedFunctions"); - if (!errmsg.empty()) - { - PrintMessage(errmsg); - return false; - } - } - // Append userdefined code to checked source code else if (strncmp(argv[i], "--append=", 9) == 0) _settings->append(9 + argv[i]);