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) <[email protected]> --- 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 33ad453..37affa6 100644 --- a/src/moveres.c +++ b/src/moveres.c @@ -1471,11 +1471,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); @@ -1484,7 +1480,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 fc933f1..cc7538a 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 */ -- 1.8.4.rc3 -- To unsubscribe, send mail to [email protected].
