Remove Config::init. It's not needed.

This commit is contained in:
JoelKatz
2012-08-14 16:00:03 -07:00
parent 36fb085114
commit d3bce70e86
3 changed files with 7 additions and 12 deletions

View File

@@ -84,7 +84,6 @@ int main(int argc, char* argv[])
int iResult = 0;
po::variables_map vm; // Map of options.
bool bTest = false;
theConfig.init();
//
// Set up option parsing.
@@ -144,16 +143,16 @@ int main(int argc, char* argv[])
Log::setMinSeverity(lsTRACE);
}
if (vm.count("standalone"))
{
theConfig.RUN_STANDALONE = true;
}
if (!iResult)
{
theConfig.setup(vm.count("conf") ? vm["conf"].as<std::string>() : "");
}
if (vm.count("standalone"))
{
theConfig.RUN_STANDALONE = true;
}
if (iResult)
{
nothing();