From 25003bd7b341065edecc3bf49b4c984cf724e92b Mon Sep 17 00:00:00 2001 From: anon Date: Wed, 13 Nov 2024 14:29:05 +0100 Subject: [PATCH] remove dead function `error_usage` --- source/global.h | 1 - source/help.c | 7 ------- 2 files changed, 8 deletions(-) diff --git a/source/global.h b/source/global.h index f416bbc..bdf9c5b 100644 --- a/source/global.h +++ b/source/global.h @@ -203,7 +203,6 @@ char *scanpast(char c); char **parse_options(const int argc, const char * const * const argv); void readenv(bool preserve_database); -void error_usage(void); void longusage(void); void usage(void); extern bool remove_symfile_onexit; diff --git a/source/help.c b/source/help.c index 4407364..3e91084 100644 --- a/source/help.c +++ b/source/help.c @@ -106,13 +106,6 @@ const char *help(void) { } } -/* error exit including short usage information */ -void error_usage(void) { - usage(); - fputs("Try the -h option for more information.\n", stderr); - myexit(1); -} - /* normal usage message */ void usage(void) { fputs("Usage: " PROGRAM_NAME