From cc9b24f36bc2cabb6c16bce5f4ae8853799ccc6a Mon Sep 17 00:00:00 2001 From: NRK Date: Sun, 15 Jan 2023 15:27:13 +0600 Subject: remove deprecated -T flag --- options.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/options.c b/options.c index a306e3d..6231d03 100644 --- a/options.c +++ b/options.c @@ -46,19 +46,6 @@ void print_usage(void) "[-z ZOOM] FILES...\n", progname); } -static void title_deprecation_notice(void) -{ - error(EXIT_FAILURE, 0, "\n" - "################################################################\n" - "# DEPRECATION NOTICE #\n" - "################################################################\n" - "# `-T` option has been deprecated in favour of `win-title`. #\n" - "# Please read the `WINDOW TITLE` section of the manpage for #\n" - "# more info. #\n" - "################################################################" - ); -} - static void print_version(void) { printf("%s %s\n", progname, VERSION); @@ -93,7 +80,6 @@ void parse_options(int argc, char **argv) { "recursive", 'r', OPTPARSE_NONE }, { "ss-delay", 'S', OPTPARSE_REQUIRED }, { "scale-mode", 's', OPTPARSE_REQUIRED }, - { NULL, 'T', OPTPARSE_REQUIRED }, { "thumbnail", 't', OPTPARSE_NONE }, { "version", 'v', OPTPARSE_NONE }, { "zoom-100", 'Z', OPTPARSE_NONE }, @@ -226,9 +212,6 @@ void parse_options(int argc, char **argv) error(EXIT_FAILURE, 0, "Invalid scale mode: %s", op.optarg); _options.scalemode = s - scalemodes; break; - case 'T': - title_deprecation_notice(); /* TODO(v31): remove this option */ - break; case 't': _options.thumb_mode = true; break; -- cgit v1.2.3-54-g00ecf