From d6d602735b861c71e98098a8ed904869f0c90164 Mon Sep 17 00:00:00 2001 From: Mathieu L Bouchard <matju@artengine.ca> Date: Thu, 31 Jul 2014 22:53:44 -0400 Subject: [PATCH] remove unused vars --- pd/src/g_vumeter.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/pd/src/g_vumeter.c b/pd/src/g_vumeter.c index e8ca2f1a8..47a45ebd5 100644 --- a/pd/src/g_vumeter.c +++ b/pd/src/g_vumeter.c @@ -280,7 +280,6 @@ static void vu_draw_move(t_vu *x, t_glist *glist) static void vu_draw_erase(t_vu* x,t_glist* glist) { - int i; t_canvas *canvas=glist_getcanvas(glist); sys_vgui(".x%lx.c delete %lxVU\n", canvas, x); @@ -744,11 +743,6 @@ static void vu__motionhook(t_scalehandle *sh, { t_bng *x = (t_bng *)(sh->h_master); int dx = (int)f1, dy = (int)f2; - int newx, newy; - newx = x->x_gui.x_obj.te_xpix + - x->x_gui.x_w - x->x_gui.scale_offset_x + dx; - newy = x->x_gui.x_obj.te_ypix + - x->x_gui.x_h - x->x_gui.scale_offset_y + dy; sh->h_dragx = dx; sh->h_dragy = dy; @@ -974,7 +968,7 @@ static void vu_scale(t_vu *x, t_floatarg fscale) } if(!x->x_scale && scale) { - int w4=x->x_gui.x_w/4, end=text_xpix(&x->x_gui.x_obj, + int end=text_xpix(&x->x_gui.x_obj, x->x_gui.x_glist)+x->x_gui.x_w+4; int k1=x->x_led_size+1, k2=IEM_VU_STEPS+1, k3=k1/2; int yyy, k4=text_ypix(&x->x_gui.x_obj, x->x_gui.x_glist)-k3; @@ -1159,10 +1153,7 @@ static void *vu_new(t_symbol *s, int argc, t_atom *argv) t_vu *x = (t_vu *)pd_new(vu_class); int bflcol[] = {-66577, -1, -1}; int w = IEM_GUI_DEFAULTSIZE, h = IEM_VU_STEPS*IEM_VU_DEFAULTSIZE; - int ldx = -1, ldy = -8, f = 0, fs = 10, scale = 1; - int ftbreak = IEM_BNG_DEFAULTBREAKFLASHTIME, - fthold = IEM_BNG_DEFAULTHOLDFLASHTIME; - char str[144]; + int ldx = -1, ldy = -8, fs = 10, scale = 1; iem_inttosymargs(&x->x_gui.x_isa, 0); iem_inttofstyle(&x->x_gui.x_fsf, 0); -- GitLab