OSDN Git Service

[Refactor] #37353 使われていないプリプロDEBUG_EVENT を削除 / Removed unused preprocessor DEBUG_EVENT
authorHourier <hourier@users.sourceforge.jp>
Fri, 14 Feb 2020 14:01:37 +0000 (23:01 +0900)
committerHourier <hourier@users.sourceforge.jp>
Fri, 14 Feb 2020 14:01:37 +0000 (23:01 +0900)
src/main-x11.c

index 9dbf253..442544a 100644 (file)
@@ -1917,49 +1917,10 @@ static errr CheckEvent(bool wait)
        XNextEvent(Metadpy->dpy, xev);
 
 #ifdef USE_XIM
-/* #define DEBUG_EVENT */
-#ifdef DEBUG_EVENT
-       {
-               printf("event: type=%d", xev->type);
-               switch(xev->type){
-               case KeyPress:
-                       printf("(KeyPress), keycode=%X", xev->xkey.keycode);
-                       break;
-               case FocusIn:
-                       printf("(FocusIn)");
-                       break;
-               case FocusOut:
-                       printf("(FocusOut)");
-                       break;
-               case ReparentNotify:
-                       printf("(ReparentNotify)");
-                       break;
-               case ConfigureNotify:
-                       printf("(ConfigureNotify)");
-                       break;
-               case MapNotify:
-                       printf("(MapNotify)");
-                       break;
-               case Expose:
-                       printf("(Expose)");
-                       break;
-               case ClientMessage:
-                       printf("(ClientMessage)");
-                       break;
-               }
-                       
-       }
-#endif
        if (XFilterEvent(xev, xev->xany.window)
-               /*XFilterEvent(xev, (data[0].win)->win)*/){
-#ifdef DEBUG_EVENT
-               printf(", [filtered by IM]\n");
-#endif
+       {
                goto redo_checkevent;
        }
-#ifdef DEBUG_EVENT
-       printf("\n");
-#endif
 #endif
 
        /* Notice new keymaps */