[MPlayer-cvslog] r35762 - in trunk/gui/wm: ws.c ws.h

ib subversion at mplayerhq.hu
Thu Jan 17 16:25:56 CET 2013


Author: ib
Date: Thu Jan 17 16:25:56 2013
New Revision: 35762

Log:
Remove unused wsKeyTable.

Modified:
   trunk/gui/wm/ws.c
   trunk/gui/wm/ws.h

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Thu Jan 17 16:21:08 2013	(r35761)
+++ trunk/gui/wm/ws.c	Thu Jan 17 16:25:56 2013	(r35762)
@@ -99,8 +99,6 @@ static Bool wsTrue = True;
 #define wsWLCount 5
 static wsWindow *wsWindowList[wsWLCount];
 
-static unsigned long wsKeyTable[512];
-
 static int wsUseXShm   = True;
 static int wsUseXShape = True;
 
@@ -876,7 +874,6 @@ keypressed:
 
             if (keySym != NoSymbol) {
                 keySym = ((keySym & 0xff00) != 0 ? ((keySym & 0x00ff) + 256) : (keySym));
-                wsKeyTable[keySym] = i;
 
                 if (wsWindowList[l]->KeyHandler)
                     wsWindowList[l]->KeyHandler(event->xkey.state, i, keySym);
@@ -891,7 +888,6 @@ keypressed:
 
             XLookupString(&event->xkey, buf, sizeof(buf), &keySym, &stat);
             key = ((keySym & 0xff00) != 0 ? ((keySym & 0x00ff) + 256) : (keySym));
-            wsKeyTable[key] = i;
 
             if (wsWindowList[l]->KeyHandler)
                 wsWindowList[l]->KeyHandler(event->xkey.keycode, i, key);

Modified: trunk/gui/wm/ws.h
==============================================================================
--- trunk/gui/wm/ws.h	Thu Jan 17 16:21:08 2013	(r35761)
+++ trunk/gui/wm/ws.h	Thu Jan 17 16:25:56 2013	(r35762)
@@ -178,8 +178,6 @@ extern Display *wsDisplay;
 extern int wsDepthOnScreen;
 
 // ----------------------------------------------------------------------------------------------
-//  wsKeyTable
-// ----------------------------------------------------------------------------------------------
 void wsXDone(void);
 void wsXInit(Display *display);
 void wsSetErrorHandler(void);


More information about the MPlayer-cvslog mailing list