From 6c8b61f5fa59001a1cc730905fe16f5a9aee100f Mon Sep 17 00:00:00 2001 From: "B. Scott Michel" Date: Wed, 6 Mar 2024 13:13:58 -0800 Subject: [PATCH] Remove unused functions --- Ibm1130/ibm1130_cpu.c | 2 -- Ibm1130/ibm1130_cr.c | 4 ++++ Ibm1130/ibm1130_gui.c | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Ibm1130/ibm1130_cpu.c b/Ibm1130/ibm1130_cpu.c index 21a7ff6f2..aba74fb6a 100644 --- a/Ibm1130/ibm1130_cpu.c +++ b/Ibm1130/ibm1130_cpu.c @@ -246,8 +246,6 @@ extern UNIT cr_unit, prt_unit[]; # define ARFSET(v) /* without GUI, no need for setting ARF */ #endif -static void init_console_window (void); -static void destroy_console_window (void); static t_stat view_cmd (int32 flag, CONST char *cptr); static t_stat cpu_attach (UNIT *uptr, CONST char *cptr); static t_bool bsctest (int32 DSPLC, t_bool reset_V); diff --git a/Ibm1130/ibm1130_cr.c b/Ibm1130/ibm1130_cr.c index 801a3b8ba..e93a47a32 100644 --- a/Ibm1130/ibm1130_cr.c +++ b/Ibm1130/ibm1130_cr.c @@ -1224,6 +1224,9 @@ static char * skipbl (char *str) return str; } +#if THIS_IS_EVER_NEEDED +/* This function is never called. Leaving it in if the IBM-1130 author + * deems it significant. */ static char * trim (char *str) { char *s, *lastnb; @@ -1236,6 +1239,7 @@ static char * trim (char *str) return str; } +#endif /* alltrim - remove all leading and trailing whitespace from a string */ diff --git a/Ibm1130/ibm1130_gui.c b/Ibm1130/ibm1130_gui.c index 1e9b1fc40..fa884372c 100644 --- a/Ibm1130/ibm1130_gui.c +++ b/Ibm1130/ibm1130_gui.c @@ -110,8 +110,6 @@ extern t_bool program_is_loaded; void disk_ready (int ready) {} void disk_unlocked (int unlocked) {} void gui_run (int running) {} - static void init_console_window (void) {} - static void destroy_console_window (void) {} t_stat console_reset (DEVICE *dptr) {return SCPE_OK;} long stuff_cmd (char *cmd) {return 0;}