deprecation notices

This commit is contained in:
karenzshea
2017-10-12 16:35:12 +02:00
committed by Patrick Niklaus
parent 2d1ea7a3de
commit df79b5b4cc
8 changed files with 9 additions and 29 deletions
+2 -1
View File
@@ -44,7 +44,8 @@ int Contractor::Run()
{
if (config.core_factor)
{
util::Log(logWARNING) << "Using core factor is deprecated and will be ignored. Falling back to CH.";
util::Log(logWARNING)
<< "Using core factor is deprecated and will be ignored. Falling back to CH.";
config.core_factor = 1.0;
}
+1 -1
View File
@@ -49,7 +49,7 @@ return_code parseArguments(int argc,
"Number of threads to use")(
"core,k",
boost::program_options::value<double>(&contractor_config.core_factor)->default_value(1.0),
"Percentage of the graph (in vertices) to contract [0..1]. Will always be 1.0")(
"DEPRECATED: Will always be 1.0. Percentage of the graph (in vertices) to contract [0..1].")(
"segment-speed-file",
boost::program_options::value<std::vector<std::string>>(
&contractor_config.updater_config.segment_speed_lookup_paths)
+1 -3
View File
@@ -62,10 +62,8 @@ std::istream &operator>>(std::istream &in, EngineConfig::Algorithm &algorithm)
in >> token;
boost::to_lower(token);
if (token == "ch")
if (token == "ch" || token == "corech")
algorithm = EngineConfig::Algorithm::CH;
else if (token == "corech")
algorithm = EngineConfig::Algorithm::CoreCH;
else if (token == "mld")
algorithm = EngineConfig::Algorithm::MLD;
else