Remove options deprecated in 0.9
This commit is contained in:
@@ -212,28 +212,6 @@ void deprecated(const char *option, const char *version_removal,
|
|||||||
bool Configuration::read(const std::vector<std::string> &config_paths, bool ignore_errors)
|
bool Configuration::read(const std::vector<std::string> &config_paths, bool ignore_errors)
|
||||||
{
|
{
|
||||||
option_parser p;
|
option_parser p;
|
||||||
|
|
||||||
// Deprecated options.
|
|
||||||
p.add("visualizer_fifo_path", &visualizer_fifo_path, "", [](std::string v) {
|
|
||||||
if (!v.empty())
|
|
||||||
{
|
|
||||||
deprecated("visualizer_fifo_path",
|
|
||||||
"0.10",
|
|
||||||
"replaced by visualizer_data_source");
|
|
||||||
}
|
|
||||||
return adjust_path(v);
|
|
||||||
});
|
|
||||||
p.add<void>("visualizer_sync_interval", nullptr, "", [](std::string v) {
|
|
||||||
if (!v.empty())
|
|
||||||
{
|
|
||||||
deprecated("visualizer_sync_interval",
|
|
||||||
"0.10",
|
|
||||||
"set 'buffer_time' parameter of your MPD audio output to '100000' "
|
|
||||||
"(100ms) or lower if you experience synchronization issues "
|
|
||||||
"between audio and visualization");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// keep the same order of variables as in configuration file
|
// keep the same order of variables as in configuration file
|
||||||
p.add("ncmpcpp_directory", &ncmpcpp_directory, "~/.config/ncmpcpp/", adjust_directory);
|
p.add("ncmpcpp_directory", &ncmpcpp_directory, "~/.config/ncmpcpp/", adjust_directory);
|
||||||
p.add("lyrics_directory", &lyrics_directory, "~/.lyrics/", adjust_directory);
|
p.add("lyrics_directory", &lyrics_directory, "~/.lyrics/", adjust_directory);
|
||||||
|
|||||||
Reference in New Issue
Block a user