@@ -380,8 +380,6 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
380380 }
381381 }
382382
383- bool def = false ;
384- bool maxconfigs = false ;
385383 bool debug = false ;
386384
387385 ImportProject::Type projectType = ImportProject::Type::NONE;
@@ -426,8 +424,6 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
426424 if (!mSettings .userDefines .empty ())
427425 mSettings .userDefines += " ;" ;
428426 mSettings .userDefines += define;
429-
430- def = true ;
431427 }
432428
433429 // -E
@@ -959,8 +955,6 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
959955 }
960956
961957 mSettings .maxConfigs = tmp;
962- mSettings .force = false ;
963- maxconfigs = true ;
964958 }
965959
966960 // max ctu depth
@@ -1128,7 +1122,6 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
11281122 return Result::Fail;
11291123 }
11301124
1131- mSettings .checkAllConfigurations = false ; // Can be overridden with --max-configs or --force
11321125 std::string projectFile = argv[i]+10 ;
11331126 projectType = project.import (projectFile, &mSettings , &mSuppressions );
11341127 if (projectType == ImportProject::Type::CPPCHECK_GUI) {
@@ -1535,14 +1528,6 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
15351528 substituteTemplateFormatStatic (mSettings .templateFormat );
15361529 substituteTemplateLocationStatic (mSettings .templateLocation );
15371530
1538- if (mSettings .force || maxconfigs)
1539- mSettings .checkAllConfigurations = true ;
1540-
1541- if (mSettings .force )
1542- mSettings .maxConfigs = INT_MAX;
1543- else if ((def || mSettings .preprocessOnly ) && !maxconfigs)
1544- mSettings .maxConfigs = 1U ;
1545-
15461531 if (debug) {
15471532 mSettings .debugnormal = true ;
15481533 mSettings .debugvalueflow = true ;
0 commit comments