From 852a51c01bd0102886a4e67798d69b6700efe15a Mon Sep 17 00:00:00 2001
From: Mathieu L Bouchard <matju@artengine.ca>
Date: Thu, 31 Jul 2014 23:42:12 -0400
Subject: [PATCH] remove unused vars

---
 pd/src/g_all_guis.c | 8 ++------
 pd/src/g_bang.c     | 1 -
 pd/src/g_hdial.c    | 6 +-----
 pd/src/g_hslider.c  | 3 +--
 pd/src/g_io.c       | 6 ++----
 pd/src/g_toggle.c   | 3 +--
 pd/src/g_vdial.c    | 5 +----
 pd/src/g_vslider.c  | 3 +--
 8 files changed, 9 insertions(+), 26 deletions(-)

diff --git a/pd/src/g_all_guis.c b/pd/src/g_all_guis.c
index 67cd1ed73..ab7c7f63f 100644
--- a/pd/src/g_all_guis.c
+++ b/pd/src/g_all_guis.c
@@ -348,8 +348,7 @@ void iemgui_all_raute2dollar(t_symbol **srlsym)
 void iemgui_send(void *x, t_iemgui *iemgui, t_symbol *s)
 {
     t_symbol *snd;
-    int pargc, tail_len, nth_arg, sndable=1, oldsndrcvable=0;
-    t_atom *pargv;
+    int sndable=1, oldsndrcvable=0;
 
     if(iemgui->x_fsf.x_rcv_able)
         oldsndrcvable += IEM_GUI_OLD_RCV_FLAG;
@@ -368,8 +367,7 @@ void iemgui_send(void *x, t_iemgui *iemgui, t_symbol *s)
 void iemgui_receive(void *x, t_iemgui *iemgui, t_symbol *s)
 {
     t_symbol *rcv;
-    int pargc, tail_len, nth_arg, rcvable=1, oldsndrcvable=0;
-    t_atom *pargv;
+    int rcvable=1, oldsndrcvable=0;
 
     if(iemgui->x_fsf.x_rcv_able)
         oldsndrcvable += IEM_GUI_OLD_RCV_FLAG;
@@ -403,8 +401,6 @@ void iemgui_receive(void *x, t_iemgui *iemgui, t_symbol *s)
 void iemgui_label(void *x, t_iemgui *iemgui, t_symbol *s)
 {
     t_symbol *lab;
-    int pargc, tail_len, nth_arg;
-    t_atom *pargv;
 
     /* tb: fix for empty label { */
     if (s == gensym(""))
diff --git a/pd/src/g_bang.c b/pd/src/g_bang.c
index 2a403a0d4..32c860f61 100644
--- a/pd/src/g_bang.c
+++ b/pd/src/g_bang.c
@@ -866,7 +866,6 @@ static void *bng_new(t_symbol *s, int argc, t_atom *argv)
     int fs=10;
     int ftbreak=IEM_BNG_DEFAULTBREAKFLASHTIME,
         fthold=IEM_BNG_DEFAULTHOLDFLASHTIME;
-    char str[144];
 
     iem_inttosymargs(&x->x_gui.x_isa, 0);
     iem_inttofstyle(&x->x_gui.x_fsf, 0);
diff --git a/pd/src/g_hdial.c b/pd/src/g_hdial.c
index c2b8ee919..8911e3b24 100644
--- a/pd/src/g_hdial.c
+++ b/pd/src/g_hdial.c
@@ -157,7 +157,6 @@ void hradio_draw_move(t_hradio *x, t_glist *glist)
 void hradio_draw_erase(t_hradio* x, t_glist* glist)
 {
     t_canvas *canvas=glist_getcanvas(glist);
-    int n=x->x_number, i;
 
     sys_vgui(".x%lx.c delete %lxHRDO\n", canvas, x);
     sys_vgui(".x%lx.c dtag all %lxHRDO\n", canvas, x);
@@ -960,12 +959,9 @@ static void *hradio_donew(t_symbol *s, int argc, t_atom *argv, int old)
 {
     t_hradio *x = (t_hradio *)pd_new(old? hradio_old_class : hradio_class);
     int bflcol[]={-262144, -1, -1};
-    int a=IEM_GUI_DEFAULTSIZE, on=0, f=0;
+    int a=IEM_GUI_DEFAULTSIZE, on=0;
     int ldx=0, ldy=-8, chg=1, num=8;
     int fs=10;
-    int ftbreak=IEM_BNG_DEFAULTBREAKFLASHTIME,
-        fthold=IEM_BNG_DEFAULTHOLDFLASHTIME;
-    char str[144];
 
     iem_inttosymargs(&x->x_gui.x_isa, 0);
     iem_inttofstyle(&x->x_gui.x_fsf, 0);
diff --git a/pd/src/g_hslider.c b/pd/src/g_hslider.c
index 61b6b02dd..8755489b9 100644
--- a/pd/src/g_hslider.c
+++ b/pd/src/g_hslider.c
@@ -966,10 +966,9 @@ static void *hslider_new(t_symbol *s, int argc, t_atom *argv)
     t_hslider *x = (t_hslider *)pd_new(hslider_class);
     int bflcol[]={-262144, -1, -1};
     int w=IEM_SL_DEFAULTSIZE, h=IEM_GUI_DEFAULTSIZE;
-    int lilo=0, ldx=-2, ldy=-8, f=0, v=0, steady=1;
+    int lilo=0, ldx=-2, ldy=-8, v=0, steady=1;
     int fs=10;
     double min=0.0, max=(double)(IEM_SL_DEFAULTSIZE-1);
-    char str[144];
 
     iem_inttosymargs(&x->x_gui.x_isa, 0);
     iem_inttofstyle(&x->x_gui.x_fsf, 0);
diff --git a/pd/src/g_io.c b/pd/src/g_io.c
index 462c203d9..70f158965 100644
--- a/pd/src/g_io.c
+++ b/pd/src/g_io.c
@@ -99,8 +99,6 @@ int vinlet_issignal(t_vinlet *x)
     return (x->x_buf != 0);
 }
 
-static int tot;
-
 t_int *vinlet_perform(t_int *w)
 {
     t_vinlet *x = (t_vinlet *)(w[1]);
@@ -167,7 +165,7 @@ void vinlet_dspprolog(struct _vinlet *x, t_signal **parentsigs,
     int myvecsize, int calcsize, int phase, int period, int frequency,
     int downsample, int upsample,  int reblock, int switched)
 {
-    t_signal *insig, *outsig;
+    t_signal *insig;
         /* no buffer means we're not a signal inlet */
     if (!x->x_buf)
         return;
@@ -487,7 +485,7 @@ void voutlet_dspepilog(struct _voutlet *x, t_signal **parentsigs,
     x->x_updown.upsample=upsample;
     if (reblock)
     {
-        t_signal *insig, *outsig;
+        t_signal *outsig;
         int parentvecsize, bufsize, oldbufsize;
         int re_parentvecsize;
         int bigperiod, epilogphase, blockphase;
diff --git a/pd/src/g_toggle.c b/pd/src/g_toggle.c
index 518e00b5a..293a7af40 100644
--- a/pd/src/g_toggle.c
+++ b/pd/src/g_toggle.c
@@ -805,11 +805,10 @@ static void *toggle_new(t_symbol *s, int argc, t_atom *argv)
 {
     t_toggle *x = (t_toggle *)pd_new(toggle_class);
     int bflcol[]={-262144, -1, -1};
-    int a=IEM_GUI_DEFAULTSIZE, f=0;
+    int a=IEM_GUI_DEFAULTSIZE;
     int ldx=17, ldy=7;
     int fs=10;
     t_float on=0.0, nonzero=1.0;
-    char str[144];
 
     iem_inttosymargs(&x->x_gui.x_isa, 0);
     iem_inttofstyle(&x->x_gui.x_fsf, 0);
diff --git a/pd/src/g_vdial.c b/pd/src/g_vdial.c
index 52bec44fd..4e09d6e95 100644
--- a/pd/src/g_vdial.c
+++ b/pd/src/g_vdial.c
@@ -957,12 +957,9 @@ static void *vradio_donew(t_symbol *s, int argc, t_atom *argv, int old)
 {
     t_vradio *x = (t_vradio *)pd_new(old? vradio_old_class : vradio_class);
     int bflcol[]={-262144, -1, -1};
-    int a=IEM_GUI_DEFAULTSIZE, on=0, f=0;
+    int a=IEM_GUI_DEFAULTSIZE, on=0;
     int ldx=0, ldy=-8, chg=1, num=8;
     int fs=10;
-    int ftbreak = IEM_BNG_DEFAULTBREAKFLASHTIME,
-        fthold = IEM_BNG_DEFAULTHOLDFLASHTIME;
-    char str[144];
 
     if((argc == 15)&&IS_A_FLOAT(argv,0)&&IS_A_FLOAT(argv,1)&&IS_A_FLOAT(argv,2)
        &&IS_A_FLOAT(argv,3)
diff --git a/pd/src/g_vslider.c b/pd/src/g_vslider.c
index e923e8629..b80e61fb3 100644
--- a/pd/src/g_vslider.c
+++ b/pd/src/g_vslider.c
@@ -959,10 +959,9 @@ static void *vslider_new(t_symbol *s, int argc, t_atom *argv)
     t_vslider *x = (t_vslider *)pd_new(vslider_class);
     int bflcol[]={-262144, -1, -1};
     int w=IEM_GUI_DEFAULTSIZE, h=IEM_SL_DEFAULTSIZE;
-    int lilo=0, f=0, ldx=0, ldy=-9;
+    int lilo=0, ldx=0, ldy=-9;
     int fs=10, v=0, steady=1;
     double min=0.0, max=(double)(IEM_SL_DEFAULTSIZE-1);
-    char str[144];
 
     iem_inttosymargs(&x->x_gui.x_isa, 0);
     iem_inttofstyle(&x->x_gui.x_fsf, 0);
-- 
GitLab