From d17c915acd2892b0fec0758c62d4862e33b2b42d Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 24 Jan 2022 18:20:42 +0000 Subject: [PATCH] Remove error message for --alpha-step Deprecated since v5. Signed-off-by: Yuxuan Shui --- src/config_libconfig.c | 6 ------ src/options.c | 6 ------ 2 files changed, 12 deletions(-) diff --git a/src/config_libconfig.c b/src/config_libconfig.c index 81c7146b..0c38b113 100644 --- a/src/config_libconfig.c +++ b/src/config_libconfig.c @@ -625,12 +625,6 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad log_warn("\"clear-shadow\" is removed as an option, and is always" " enabled now. Consider removing it from your config file"); - if (config_lookup_float(&cfg, "alpha-step", &dval)) { - log_error("\"alpha-step\" has been removed, compton now tries to make use" - " of all alpha values"); - goto err; - } - const char *deprecation_message attr_unused = "has been removed. If you encounter problems " "without this feature, please feel free to open a bug report"; diff --git a/src/options.c b/src/options.c index f2c5dcbf..ee9d2b38 100644 --- a/src/options.c +++ b/src/options.c @@ -390,7 +390,6 @@ static const struct option longopts[] = { {"detect-client-opacity", no_argument, NULL, 268}, {"refresh-rate", required_argument, NULL, 269}, {"vsync", optional_argument, NULL, 270}, - {"alpha-step", required_argument, NULL, 271}, {"sw-opti", no_argument, NULL, 274}, {"vsync-aggressive", no_argument, NULL, 275}, {"use-ewmh-active-win", no_argument, NULL, 276}, @@ -668,11 +667,6 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable, opt->vsync = true; } break; - case 271: - // --alpha-step - log_error("--alpha-step has been removed, we now tries to " - "make use of all alpha values"); - failed = true; break; case 274: log_warn("--sw-opti has been deprecated, please remove it from the " "command line options");