[MPlayer-cvslog] r35764 - in trunk/gui/wm: ws.c ws.h
ib
subversion at mplayerhq.hu
Thu Jan 17 16:46:21 CET 2013
Author: ib
Date: Thu Jan 17 16:46:21 2013
New Revision: 35764
Log:
Remove unused code.
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:44:23 2013 (r35763)
+++ trunk/gui/wm/ws.c Thu Jan 17 16:46:21 2013 (r35764)
@@ -621,8 +621,6 @@ void wsCreateWindow(wsWindow *win, int x
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 @@ void wsDestroyWindow(wsWindow *win)
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 @@ expose:
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 @@ void wsMoveWindow(wsWindow *win, Bool ab
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 @@ void wsResizeWindow(wsWindow *win, int s
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);
}
Modified: trunk/gui/wm/ws.h
==============================================================================
--- trunk/gui/wm/ws.h Thu Jan 17 16:44:23 2013 (r35763)
+++ trunk/gui/wm/ws.h Thu Jan 17 16:46:21 2013 (r35764)
@@ -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 @@ typedef struct {
int Rolled;
wsTReDraw ReDraw;
- wsTReSize ReSize;
- wsTIdle Idle;
wsTKeyHandler KeyHandler;
wsTMouseHandler MouseHandler;
wsTDNDHandler DandDHandler;
More information about the MPlayer-cvslog
mailing list