From 2160e352fae550a6a25bc37c68c251214cb7119f Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sat, 5 Mar 2022 16:37:36 -0500 Subject: [PATCH] Clean up redundant/unused declarations. --- src/motif.c | 1 - src/motif_ui.c | 3 --- src/x11.c | 1 - 3 files changed, 5 deletions(-) diff --git a/src/motif.c b/src/motif.c index f9366f7..f98b307 100644 --- a/src/motif.c +++ b/src/motif.c @@ -75,7 +75,6 @@ static void print_help(void) puts("Options:"); for (opt = lopts; opt->name; opt++) { struct lopt_help help; - int w; if (!lopt_get_help(opt, &help)) continue; diff --git a/src/motif_ui.c b/src/motif_ui.c index 279f550..adbb3e5 100644 --- a/src/motif_ui.c +++ b/src/motif_ui.c @@ -30,8 +30,6 @@ #define MIN(a, b) ((a) < (b) ? (a) : (b)) -static void game_configure(Widget w); - /* XXX generate this list? */ enum { widgetMainWindow, @@ -130,7 +128,6 @@ static Widget create_widget(const struct ui_widget *item, Widget parent, { String name = (void *)&tree_strtab[item->name]; WidgetClass class; - Widget w; if (item->widget_type == widgetMenuBar) return XmCreateMenuBar(parent, name, args, num_args); diff --git a/src/x11.c b/src/x11.c index 94a0619..611223f 100644 --- a/src/x11.c +++ b/src/x11.c @@ -55,7 +55,6 @@ void x11_initialize(struct app_state *state, Screen *screen) { Display *display = DisplayOfScreen(screen); Window root = RootWindowOfScreen(screen); - Colormap cmap = DefaultColormapOfScreen(screen); XGCValues gcv; init_colours(state, screen); -- 2.43.2