[PATCH keyboard] Removing unused variable kbdType.

Alexandr Shadchin alexandr.shadchin at gmail.com
Fri Nov 26 13:39:13 PST 2010


Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin at gmail.com>
---
 src/bsd_KbdMap.c |    2 --
 src/lnx_KbdMap.c |    2 --
 src/xf86OSKbd.h  |    1 -
 3 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/bsd_KbdMap.c b/src/bsd_KbdMap.c
index 2697f6a..6cfdbe4 100644
--- a/src/bsd_KbdMap.c
+++ b/src/bsd_KbdMap.c
@@ -1026,8 +1026,6 @@ KbdGetMapping (InputInfoPtr pInfo, KeySymsPtr pKeySyms, CARD8 *pModMap)
       break;
 
     }
-  
-  pKbd->kbdType = 0;
 
   pKeySyms->map        = map;
   pKeySyms->mapWidth   = GLYPHS_PER_KEY;
diff --git a/src/lnx_KbdMap.c b/src/lnx_KbdMap.c
index 21bed2e..2121c5f 100644
--- a/src/lnx_KbdMap.c
+++ b/src/lnx_KbdMap.c
@@ -97,8 +97,6 @@ KbdGetMapping (InputInfoPtr pInfo, KeySymsPtr pKeySyms, CARD8 *pModMap)
       break;
 
     }
-  
-  pKbd->kbdType = ioctl(pInfo->fd, KDGKBTYPE, &type) != -1 ? type : KB_101;
 
   pKeySyms->map        = map;
   pKeySyms->mapWidth   = GLYPHS_PER_KEY;
diff --git a/src/xf86OSKbd.h b/src/xf86OSKbd.h
index daeabf1..176bcd0 100644
--- a/src/xf86OSKbd.h
+++ b/src/xf86OSKbd.h
@@ -81,7 +81,6 @@ typedef struct {
 
     /* os specific */
     pointer		private;
-    int			kbdType;
     int			consType;
     int			wsKbdType;
 
-- 
1.7.3.2



More information about the xorg-devel mailing list