From 6d65daf1be2d93dabf32dd3c8aa9ce3b7d6cd481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Mon, 7 Oct 2013 00:12:11 +0200 Subject: [PATCH] Removed unused keymove_tick variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The variable keymove_tick is set, but is never used after, so can be removed. kix@osaka:~/src/wmaker/git/wmaker-crm/src$ grep keymove_tick *[ch] moveres.c: scr->keymove_tick = 0; screen.h: int keymove_tick; kix@osaka:~/src/wmaker/git/wmaker-crm/src$ Signed-off-by: Rodolfo García Peñas (kix) --- src/moveres.c | 8 ++------ src/screen.h | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/moveres.c b/src/moveres.c index b7aedb96..89fce684 100644 --- a/src/moveres.c +++ b/src/moveres.c @@ -1469,11 +1469,7 @@ int wKeyboardMoveResizeWindow(WWindow * wwin) }; if (done) { - scr->keymove_tick = 0; - /* - WMDeleteTimerWithClientData(&looper); - */ - if (!opaqueMoveResize) {/*ctrlmode=> resize */ + if (!opaqueMoveResize) { /* ctrlmode => resize */ if (wwin->flags.shaded || scr->selected_windows) { if (scr->selected_windows) drawFrames(wwin, scr->selected_windows, off_x, off_y); @@ -1482,7 +1478,7 @@ int wKeyboardMoveResizeWindow(WWindow * wwin) } else { drawTransparentFrame(wwin, src_x + off_x, src_y + off_y, ww, wh); } - }; + } if (ctrlmode) { showGeometry(wwin, src_x + off_x, src_y + off_y, src_x + off_x + ww, diff --git a/src/screen.h b/src/screen.h index fc933f11..cc7538af 100644 --- a/src/screen.h +++ b/src/screen.h @@ -219,7 +219,6 @@ typedef struct _WScreen { int drawer_count; /* Nb of drawers that */ struct WDock *attracting_drawer; /* The drawer that auto-attracts icons, or NULL */ - int keymove_tick; struct RContext *rcontext; /* wrlib context */ WMScreen *wmscreen; /* for widget library */