[PATCH xsetmode] Remove dead code the-l option

Stéphane Aulery lkppo at free.fr
Mon Jul 8 15:55:09 PDT 2013


Remove dead code the-l option that seems copied from another utility
(xsetpointer) but never executed.

Signed-off-by: Stéphane Aulery <lkppo at free.fr>
---
 xsetmode.c |   14 ++------------
 1 file 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);
 }
-- 
1.7.10.4



More information about the xorg-devel mailing list