summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStéphane Aulery <lkppo@free.fr>2013-07-09 00:55:09 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-08 23:51:11 -0700
commiteda09512aee0d17b9bf1c3aa1a79056e1e5bbec0 (patch)
tree894a90ecf40725f411e1e536802b7b220e8d066c
parent270c7b51d867f067e5f295de2e1d724738fa55a6 (diff)
Remove dead code for the -l option
Remove dead code: the -l option that seems copied from another utility (xsetpointer) but never executed. Signed-off-by: Stéphane Aulery <lkppo@free.fr> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xsetmode.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/xsetmode.c b/xsetmode.c
index 2aead84..bdfe862 100644
--- a/xsetmode.c
+++ b/xsetmode.c
@@ -62,17 +62,12 @@ main(int argc, char * argv[])
char **extensions;
XDeviceInfo *devices;
Display *dpy;
- int list = 0;
if (argc != 3) {
fprintf(stderr, "usage : %s <device name> (ABSOLUTE|RELATIVE)\n", argv[0]);
exit(1);
}
- if (strcmp(argv[1], "-l") == 0) {
- list = 1;
- }
-
dpy = XOpenDisplay(NULL);
if (!dpy) {
@@ -125,11 +120,6 @@ main(int argc, char * argv[])
exit(1);
}
- if (list) {
- exit(0);
- }
- else {
- fprintf(stderr, "Extended device %s not found\n", argv[1]);
- exit(1);
- }
+ fprintf(stderr, "Extended device %s not found\n", argv[1]);
+ exit(1);
}