Summary: remove variables that are not used

This commit is contained in:
bch 2017-02-26 16:05:52 +00:00
parent 38f147b166
commit 3d431ec0b6

21
xmem.c
View File

@ -45,17 +45,6 @@ typedef struct _XLoadResources {
* pass over the remaining options after XtParseCommand is let loose. * pass over the remaining options after XtParseCommand is let loose.
*/ */
static XrmOptionDescRec options[] = {
{"-scale", "*load.minScale", XrmoptionSepArg, NULL},
{"-update", "*load.update", XrmoptionSepArg, NULL},
{"-hl", "*load.highlight", XrmoptionSepArg, NULL},
{"-highlight", "*load.highlight", XrmoptionSepArg, NULL},
{"-jumpscroll", "*load.jumpScroll", XrmoptionSepArg, NULL},
{"-label", "*label.label", XrmoptionSepArg, NULL},
{"-nolabel", "*showLabel", XrmoptionNoArg, "False"},
{"-lights", "*useLights", XrmoptionNoArg, "True"},
};
static XrmOptionDescRec options_mem[] = { static XrmOptionDescRec options_mem[] = {
{"-scale", "*mem.minScale", XrmoptionSepArg, NULL}, {"-scale", "*mem.minScale", XrmoptionSepArg, NULL},
{"-update", "*mem.update", XrmoptionSepArg, NULL}, {"-update", "*mem.update", XrmoptionSepArg, NULL},
@ -79,13 +68,6 @@ static XrmOptionDescRec options_mem[] = {
#define Offset(field) (XtOffsetOf(XLoadResources, field)) #define Offset(field) (XtOffsetOf(XLoadResources, field))
static XtResource my_resources[] = {
{"showLabel", XtCBoolean, XtRBoolean, sizeof(Boolean),
Offset(show_label), XtRImmediate, (XtPointer) TRUE},
{"useLights", XtCBoolean, XtRBoolean, sizeof(Boolean),
Offset(use_lights), XtRImmediate, (XtPointer) FALSE},
};
static XtResource my_resources_mem[] = { static XtResource my_resources_mem[] = {
{"showLabel", XtCBoolean, XtRBoolean, sizeof(Boolean), {"showLabel", XtCBoolean, XtRBoolean, sizeof(Boolean),
Offset(show_label), XtRImmediate, (XtPointer) TRUE}, Offset(show_label), XtRImmediate, (XtPointer) TRUE},
@ -99,7 +81,6 @@ static XtActionsRec xload_actions[] = {
{ "quit", quit }, { "quit", quit },
}; };
static Atom wm_delete_window; static Atom wm_delete_window;
static int light_update = 10 * 1000;
/* /*
* Exit with message describing command line format. * Exit with message describing command line format.
@ -154,7 +135,6 @@ int main(int argc, char **argv)
Arg args[1]; Arg args[1];
Pixmap icon_pixmap = None; Pixmap icon_pixmap = None;
char *label, host[256]; char *label, host[256];
char *lastslash;
/* For security reasons, we reset our uid/gid after doing the necessary /* For security reasons, we reset our uid/gid after doing the necessary
system initialization and before calling any X routines. */ system initialization and before calling any X routines. */
@ -227,6 +207,7 @@ int main(int argc, char **argv)
errx(1, "pledge failed: %s", strerror(errno)); errx(1, "pledge failed: %s", strerror(errno));
XtAppMainLoop(app_con); XtAppMainLoop(app_con);
return 0;
} }