# HG changeset patch # User reimar # Date 1304794755 0 # Node ID d3ab6eb6b94bab61ecd323edd0e59d8375209b8e # Parent d30987a7e6cf694ed0b42ca1077edb35085826c4 Remove code with no purpose. Also fixes compiler warning about variable that is assigned but never used. diff -r d30987a7e6cf -r d3ab6eb6b94b gui/wm/ws.c --- a/gui/wm/ws.c Sat May 07 18:53:48 2011 +0000 +++ b/gui/wm/ws.c Sat May 07 18:59:15 2011 +0000 @@ -1118,10 +1118,8 @@ void wsCreateImage( wsTWindow * win,int Width,int Height ) { - int CompletionType = -1; if ( wsUseXShm ) { - CompletionType=XShmGetEventBase( wsDisplay ) + ShmCompletion; win->xImage=XShmCreateImage( wsDisplay,win->VisualInfo.visual, win->VisualInfo.depth,ZPixmap,NULL,&win->Shminfo,Width,Height ); if ( win->xImage == NULL )