Cmdlineparser: Removed deprecated flag --unused-functions
This commit is contained in:
parent
80ed0b2ad1
commit
c5064e4591
|
@ -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)
|
else if (strcmp(argv[i], "-q") == 0 || strcmp(argv[i], "--quiet") == 0)
|
||||||
_settings->_errorsOnly = true;
|
_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
|
// Append userdefined code to checked source code
|
||||||
else if (strncmp(argv[i], "--append=", 9) == 0)
|
else if (strncmp(argv[i], "--append=", 9) == 0)
|
||||||
_settings->append(9 + argv[i]);
|
_settings->append(9 + argv[i]);
|
||||||
|
|
Loading…
Reference in New Issue