Remove error message for no-dock-shadow and no-dnd-shadow

Deprecated since v4.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2022-01-24 18:40:39 +00:00
parent 4532187c34
commit 4fbaaca0d6
2 changed files with 0 additions and 22 deletions

View File

@@ -392,18 +392,6 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad
// -c (shadow_enable)
if (config_lookup_bool(&cfg, "shadow", &ival))
*shadow_enable = ival;
// -C (no_dock_shadow)
if (config_lookup_bool(&cfg, "no-dock-shadow", &ival)) {
log_error("Option `no-dock-shadow` has been removed. Please use the "
"wintype option `shadow` of `dock` instead.");
goto err;
}
// -G (no_dnd_shadow)
if (config_lookup_bool(&cfg, "no-dnd-shadow", &ival)) {
log_error("Option `no-dnd-shadow` has been removed. Please use the "
"wintype option `shadow` of `dnd` instead.");
goto err;
};
// -m (menu_opacity)
if (config_lookup_float(&cfg, "menu-opacity", &dval)) {
log_warn("Option `menu-opacity` is deprecated, and will be removed."

View File

@@ -365,13 +365,11 @@ static const struct option longopts[] = {
{"fade-delta", required_argument, NULL, 'D'},
{"menu-opacity", required_argument, NULL, 'm'},
{"shadow", no_argument, NULL, 'c'},
{"no-dock-shadow", no_argument, NULL, 'C'},
{"clear-shadow", no_argument, NULL, 'z'},
{"fading", no_argument, NULL, 'f'},
{"inactive-opacity", required_argument, NULL, 'i'},
{"frame-opacity", required_argument, NULL, 'e'},
{"daemon", no_argument, NULL, 'b'},
{"no-dnd-shadow", no_argument, NULL, 'G'},
{"shadow-red", required_argument, NULL, 257},
{"shadow-green", required_argument, NULL, 258},
{"shadow-blue", required_argument, NULL, 259},
@@ -557,14 +555,6 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable,
case 'I': opt->fade_in_step = normalize_d(atof(optarg)); break;
case 'O': opt->fade_out_step = normalize_d(atof(optarg)); break;
case 'c': shadow_enable = true; break;
case 'C':
log_error("Option `--no-dock-shadow`/`-C` has been removed. Please"
" use the wintype option `shadow` of `dock` instead.");
failed = true; break;
case 'G':
log_error("Option `--no-dnd-shadow`/`-G` has been removed. Please "
"use the wintype option `shadow` of `dnd` instead.");
failed = true; break;
case 'm':;
double tmp;
tmp = normalize_d(atof(optarg));