From ddcbf2a7b40bcbd6130339425ab328d6cec96a55 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 31 Jul 2023 16:28:07 +0200 Subject: config: remove deprecated option 'utempter' --- config.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'config.c') diff --git a/config.c b/config.c index 302e30f0..129fe99a 100644 --- a/config.c +++ b/config.c @@ -1000,23 +1000,7 @@ parse_section_main(struct context *ctx) else if (strcmp(key, "box-drawings-uses-font-glyphs") == 0) return value_to_bool(ctx, &conf->box_drawings_uses_font_glyphs); - else if (strcmp(key, "utmp-helper") == 0 || strcmp(key, "utempter") == 0) { - if (strcmp(key, "utempter") == 0) { - struct user_notification deprecation = { - .kind = USER_NOTIFICATION_DEPRECATED, - .text = xasprintf( - "%s:%d: \033[1m[main].utempter\033[22m, " - "use \033[1m[main].utmp-helper\033[22m instead", - ctx->path, ctx->lineno), - }; - tll_push_back(conf->notifications, deprecation); - - LOG_WARN( - "%s:%d: [main].utempter is deprecated, " - "use [main].utmp-helper instead", - ctx->path, ctx->lineno); - } - + else if (strcmp(key, "utmp-helper") == 0) { if (!value_to_str(ctx, &conf->utmp_helper_path)) return false; -- cgit v1.3