# HG changeset patch # User ib # Date 1358437581 0 # Node ID 8ce9bc8aa4439b01b7d4b6e3b5f24103d77c4b42 # Parent e7bd98b3ad6cf31f0759fec1b815be9fd9d7df42 Remove unused code. diff -r e7bd98b3ad6c -r 8ce9bc8aa443 gui/wm/ws.c --- a/gui/wm/ws.c Thu Jan 17 15:44:23 2013 +0000 +++ b/gui/wm/ws.c Thu Jan 17 15:46:21 2013 +0000 @@ -621,8 +621,6 @@ XSync(wsDisplay, False); win->ReDraw = NULL; - win->ReSize = NULL; - win->Idle = NULL; win->MouseHandler = NULL; win->KeyHandler = NULL; mp_msg(MSGT_GPLAYER, MSGL_DBG2, "[ws] window is created. ( %s ).\n", label); @@ -680,8 +678,6 @@ XDestroyWindow(wsDisplay, win->WindowID); #if 0 win->ReDraw = NULL; - win->ReSize = NULL; - win->Idle = NULL; win->MouseHandler = NULL; win->KeyHandler = NULL; win->Visible = wsNo; @@ -820,9 +816,6 @@ wsWindowList[l]->Y = y; wsWindowList[l]->Width = event->xconfigure.width; wsWindowList[l]->Height = event->xconfigure.height; - - if (wsWindowList[l]->ReSize) - wsWindowList[l]->ReSize(wsWindowList[l]->X, wsWindowList[l]->Y, wsWindowList[l]->Width, wsWindowList[l]->Height); } wsWindowList[l]->Rolled = wsNo; @@ -1143,9 +1136,6 @@ wsSizeHint(win); XMoveWindow(wsDisplay, win->WindowID, win->X, win->Y); - - if (win->ReSize) - win->ReSize(win->X, win->Y, win->Width, win->Height); } /** @@ -1197,9 +1187,6 @@ wsSizeHint(win); XResizeWindow(wsDisplay, win->WindowID, sx, sy); - if (win->ReSize) - win->ReSize(win->X, win->Y, win->Width, win->Height); - if (vo_wm_type == 0) XMapWindow(wsDisplay, win->WindowID); } diff -r e7bd98b3ad6c -r 8ce9bc8aa443 gui/wm/ws.h --- a/gui/wm/ws.h Thu Jan 17 15:44:23 2013 +0000 +++ b/gui/wm/ws.h Thu Jan 17 15:46:21 2013 +0000 @@ -95,8 +95,6 @@ #define wsRolled 6 typedef void (*wsTReDraw)(void); -typedef void (*wsTReSize)(unsigned int X, unsigned int Y, unsigned int width, unsigned int height); -typedef void (*wsTIdle)(void); typedef void (*wsTKeyHandler)(int KeyCode, int Type, int Key); typedef void (*wsTMouseHandler)(int Button, int X, int Y, int RX, int RY); typedef void (*wsTDNDHandler)(int num, char **str); @@ -122,8 +120,6 @@ int Rolled; wsTReDraw ReDraw; - wsTReSize ReSize; - wsTIdle Idle; wsTKeyHandler KeyHandler; wsTMouseHandler MouseHandler; wsTDNDHandler DandDHandler;