Summary: remove variables that are not used
This commit is contained in:
parent
38f147b166
commit
3d431ec0b6
21
xmem.c
21
xmem.c
@ -45,17 +45,6 @@ typedef struct _XLoadResources {
|
||||
* 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[] = {
|
||||
{"-scale", "*mem.minScale", XrmoptionSepArg, NULL},
|
||||
{"-update", "*mem.update", XrmoptionSepArg, NULL},
|
||||
@ -79,13 +68,6 @@ static XrmOptionDescRec options_mem[] = {
|
||||
|
||||
#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[] = {
|
||||
{"showLabel", XtCBoolean, XtRBoolean, sizeof(Boolean),
|
||||
Offset(show_label), XtRImmediate, (XtPointer) TRUE},
|
||||
@ -99,7 +81,6 @@ static XtActionsRec xload_actions[] = {
|
||||
{ "quit", quit },
|
||||
};
|
||||
static Atom wm_delete_window;
|
||||
static int light_update = 10 * 1000;
|
||||
|
||||
/*
|
||||
* Exit with message describing command line format.
|
||||
@ -154,7 +135,6 @@ int main(int argc, char **argv)
|
||||
Arg args[1];
|
||||
Pixmap icon_pixmap = None;
|
||||
char *label, host[256];
|
||||
char *lastslash;
|
||||
|
||||
/* For security reasons, we reset our uid/gid after doing the necessary
|
||||
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));
|
||||
|
||||
XtAppMainLoop(app_con);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user