nsxivcc9b24f
remove deprecated -T flag
+0 −17
1 file changed
- M options.c +0 −17
| @@ -46,19 +46,6 @@ void print_usage(void) | |||
| 46 | 46 | "[-z ZOOM] FILES...\n", progname); | |
| 47 | 47 | } | |
| 48 | 48 | ||
| 49 | − | static void title_deprecation_notice(void) | |
| 50 | − | { | |
| 51 | − | error(EXIT_FAILURE, 0, "\n" | |
| 52 | − | "################################################################\n" | |
| 53 | − | "# DEPRECATION NOTICE #\n" | |
| 54 | − | "################################################################\n" | |
| 55 | − | "# `-T` option has been deprecated in favour of `win-title`. #\n" | |
| 56 | − | "# Please read the `WINDOW TITLE` section of the manpage for #\n" | |
| 57 | − | "# more info. #\n" | |
| 58 | − | "################################################################" | |
| 59 | − | ); | |
| 60 | − | } | |
| 61 | − | ||
| 62 | 49 | static void print_version(void) | |
| 63 | 50 | { | |
| 64 | 51 | printf("%s %s\n", progname, VERSION); | |
| @@ -93,7 +80,6 @@ void parse_options(int argc, char **argv) | |||
| 93 | 80 | { "recursive", 'r', OPTPARSE_NONE }, | |
| 94 | 81 | { "ss-delay", 'S', OPTPARSE_REQUIRED }, | |
| 95 | 82 | { "scale-mode", 's', OPTPARSE_REQUIRED }, | |
| 96 | − | { NULL, 'T', OPTPARSE_REQUIRED }, | |
| 97 | 83 | { "thumbnail", 't', OPTPARSE_NONE }, | |
| 98 | 84 | { "version", 'v', OPTPARSE_NONE }, | |
| 99 | 85 | { "zoom-100", 'Z', OPTPARSE_NONE }, | |
| @@ -226,9 +212,6 @@ void parse_options(int argc, char **argv) | |||
| 226 | 212 | error(EXIT_FAILURE, 0, "Invalid scale mode: %s", op.optarg); | |
| 227 | 213 | _options.scalemode = s - scalemodes; | |
| 228 | 214 | break; | |
| 229 | − | case 'T': | |
| 230 | − | title_deprecation_notice(); /* TODO(v31): remove this option */ | |
| 231 | − | break; | |
| 232 | 215 | case 't': | |
| 233 | 216 | _options.thumb_mode = true; | |
| 234 | 217 | break; | |