settings: remove default_space_mode

This commit is contained in:
Andrzej Rybczak
2016-11-19 15:52:47 +01:00
parent 180c2d26fc
commit c6f5933bf9
3 changed files with 6 additions and 10 deletions

View File

@@ -177,12 +177,13 @@ NC::Buffer buffer(const std::string &v)
return result;
}
/*
void deprecated(const char *option, double version_removal)
{
std::cerr << "WARNING: " << option
<< " is deprecated and will be removed in " << version_removal << "\n";
}
*/
}
@@ -190,11 +191,6 @@ bool Configuration::read(const std::vector<std::string> &config_paths, bool igno
{
option_parser p;
// deprecation warnings
p.add<void>("default_space_mode", nullptr, "", [](std::string) {
deprecated("default_space_mode", 0.8);
});
// keep the same order of variables as in configuration file
p.add("ncmpcpp_directory", &ncmpcpp_directory, "~/.ncmpcpp/", adjust_directory);
p.add("lyrics_directory", &lyrics_directory, "~/.lyrics/", adjust_directory);