diff options
author | Stéphane Aulery <lkppo@free.fr> | 2013-07-09 00:55:09 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-08 23:51:11 -0700 |
commit | eda09512aee0d17b9bf1c3aa1a79056e1e5bbec0 (patch) | |
tree | 894a90ecf40725f411e1e536802b7b220e8d066c | |
parent | 270c7b51d867f067e5f295de2e1d724738fa55a6 (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.c | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -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); } |