Commit 120a86e1 authored by Mathieu L Bouchard's avatar Mathieu L Bouchard
Browse files

remove unused vars

parent b1be751d
......@@ -666,7 +666,6 @@ static void route_list(t_route *x, t_symbol *sel, int argc, t_atom *argv)
}
}
}
rejected:
outlet_list(x->x_rejectout, 0, argc, argv);
}
......@@ -748,7 +747,7 @@ typedef struct _pack
static void *pack_new(t_symbol *s, int argc, t_atom *argv)
{
t_pack *x = (t_pack *)pd_new(pack_class);
t_atom defarg[2], *ap, *vec, *vp;
t_atom defarg[2], *ap, *vp;
t_gpointer *gp;
int nptr = 0;
int i;
......@@ -761,7 +760,7 @@ static void *pack_new(t_symbol *s, int argc, t_atom *argv)
}
x->x_n = argc;
vec = x->x_vec = (t_atom *)getbytes(argc * sizeof(*x->x_vec));
x->x_vec = (t_atom *)getbytes(argc * sizeof(*x->x_vec));
x->x_outvec = (t_atom *)getbytes(argc * sizeof(*x->x_outvec));
for (i = argc, ap = argv; i--; ap++)
......@@ -1393,8 +1392,8 @@ typedef struct _makefilename
static void makefilename_scanformat(t_makefilename *x)
{
int num=0, infmt=0;
char *str,*chr;
int infmt=0;
char *str;
if (!x->x_format) return;
x->x_accept = A_NULL;
for (str=x->x_format->s_name; *str; str++)
......
......@@ -71,7 +71,6 @@ static void print_float(t_print *x, t_float f)
static void print_list(t_print *x, t_symbol *s, int argc, t_atom *argv)
{
int i;
if (argc && argv->a_type != A_SYMBOL)
startpost("%s%s%g", x->x_sym->s_name,
(*x->x_sym->s_name ? ": " : ""),
......@@ -85,7 +84,6 @@ static void print_list(t_print *x, t_symbol *s, int argc, t_atom *argv)
static void print_anything(t_print *x, t_symbol *s, int argc, t_atom *argv)
{
int i;
startpost("%s: %s", x->x_sym->s_name, s->s_name);
postatom(argc, argv);
endpost();
......@@ -579,7 +577,7 @@ void pdinfo_audio_dev(t_pdinfo *x, t_symbol *s, int argc, t_atom *argv)
else devno = 0;
int naudioindev, audioindev[MAXAUDIOINDEV], chindev[MAXAUDIOINDEV];
int naudiooutdev, audiooutdev[MAXAUDIOOUTDEV], choutdev[MAXAUDIOOUTDEV];
int rate, advance, callback, blocksize;
int rate, advance, callback;
sys_get_audio_params(&naudioindev, audioindev, chindev,
&naudiooutdev, audiooutdev, choutdev, &rate, &advance, &callback);
int *dev, *chan, ndev;
......@@ -652,8 +650,7 @@ void pdinfo_midi_dev(t_pdinfo *x, t_symbol *s, int argc, t_atom *argv)
{
int devno, nmidiindev, midiindev[MAXMIDIINDEV],
nmidioutdev, midioutdev[MAXMIDIOUTDEV];
int *dev, *chan, ndev;
t_atom at[4];
int *dev, ndev;
if (argc) devno = (int)atom_getfloatarg(0, argc, argv);
else devno = 0;
sys_get_midi_params(&nmidiindev, midiindev, &nmidioutdev, midioutdev);
......@@ -678,7 +675,7 @@ void pdinfo_audio_outdev(t_pdinfo *x, t_symbol *s, int argc, t_atom *argv)
else devno = 0;
int naudioindev, audioindev[MAXAUDIOINDEV], chindev[MAXAUDIOINDEV];
int naudiooutdev, audiooutdev[MAXAUDIOOUTDEV], choutdev[MAXAUDIOOUTDEV];
int rate, advance, callback, blocksize;
int rate, advance, callback;
sys_get_audio_params(&naudioindev, audioindev, chindev,
&naudiooutdev, audiooutdev, choutdev, &rate, &advance, &callback);
if (devno >= 0 && devno < naudioindev)
......
......@@ -190,7 +190,7 @@ static void list_append_list(t_list_append *x, t_symbol *s,
int argc, t_atom *argv)
{
t_atom *outv;
int n, outc = x->x_alist.l_n + argc;
int outc = x->x_alist.l_n + argc;
XL_ATOMS_ALLOCA(outv, outc);
atoms_copy(argc, argv, outv);
if (x->x_alist.l_npointer)
......@@ -213,7 +213,7 @@ static void list_append_anything(t_list_append *x, t_symbol *s,
int argc, t_atom *argv)
{
t_atom *outv;
int n, outc = x->x_alist.l_n + argc + 1;
int outc = x->x_alist.l_n + argc + 1;
XL_ATOMS_ALLOCA(outv, outc);
SETSYMBOL(outv, s);
atoms_copy(argc, argv, outv + 1);
......@@ -294,7 +294,7 @@ static void list_cat_list(t_list_cat *x, t_symbol *s,
int argc, t_atom *argv)
{
t_atom *outv;
int n, outc = x->x_alist.l_n + argc;
int outc = x->x_alist.l_n + argc;
XL_ATOMS_ALLOCA(outv, outc);
atoms_copy(argc, argv, outv + x->x_alist.l_n);
if (x->x_alist.l_npointer)
......@@ -318,7 +318,7 @@ static void list_cat_anything(t_list_cat *x, t_symbol *s,
int argc, t_atom *argv)
{
t_atom *outv;
int n, outc = x->x_alist.l_n + argc + 1;
int outc = x->x_alist.l_n + argc + 1;
XL_ATOMS_ALLOCA(outv, outc);
SETSYMBOL(outv + x->x_alist.l_n, s);
atoms_copy(argc, argv, outv + x->x_alist.l_n + 1);
......@@ -391,7 +391,7 @@ static void list_prepend_list(t_list_prepend *x, t_symbol *s,
int argc, t_atom *argv)
{
t_atom *outv;
int n, outc = x->x_alist.l_n + argc;
int outc = x->x_alist.l_n + argc;
XL_ATOMS_ALLOCA(outv, outc);
atoms_copy(argc, argv, outv + x->x_alist.l_n);
if (x->x_alist.l_npointer)
......@@ -416,7 +416,7 @@ static void list_prepend_anything(t_list_prepend *x, t_symbol *s,
int argc, t_atom *argv)
{
t_atom *outv;
int n, outc = x->x_alist.l_n + argc + 1;
int outc = x->x_alist.l_n + argc + 1;
XL_ATOMS_ALLOCA(outv, outc);
SETSYMBOL(outv + x->x_alist.l_n, s);
atoms_copy(argc, argv, outv + x->x_alist.l_n + 1);
......
......@@ -568,7 +568,7 @@ void inmidi_clk(double timing)
static t_float prev = 0;
static t_float count = 0;
t_float cur,diff;
t_float diff;
if (midiclkin_sym->s_thing)
{
......@@ -1041,7 +1041,6 @@ static void *stripnote_new(void )
static void stripnote_float(t_stripnote *x, t_float f)
{
t_hang *hang;
if (!x->x_velo) return;
outlet_float(x->x_velout, x->x_velo);
outlet_float(x->x_pitchout, f);
......
......@@ -201,7 +201,6 @@ static void netreceive_notify(t_netreceive *x)
static void netreceive_doit(void *z, t_binbuf *b)
{
t_atom messbuf[1024];
t_netreceive *x = (t_netreceive *)z;
int msg, natom = binbuf_getnatom(b);
t_atom *at = binbuf_getvec(b);
......
......@@ -100,7 +100,6 @@ int glob_preset_node_list_delete(t_preset_node *x)
{
if(PH_DEBUG) fprintf(stderr,"glob_preset_node_list_delete\n");
t_glob_preset_node_list *n1, *n2;
int found;
if (!gpnl)
return(1);
......@@ -273,7 +272,6 @@ int glob_preset_hub_list_delete(t_preset_hub *x)
{
if(PH_DEBUG) fprintf(stderr,"glob_preset_hub_list_delete\n");
t_glob_preset_hub_list *h1, *h2;
int found;
if (!gphl)
return(1);
......@@ -559,7 +557,6 @@ static void preset_node_anything(t_preset_node *x, t_symbol *s, int argc, t_atom
int preset_node_check_location(t_preset_node *x)
{
int result;
if (x->pn_hub)
{
preset_node_update_my_glist_location(x);
......@@ -794,7 +791,6 @@ static void *preset_node_new(t_symbol *s, int argc, t_atom *argv)
}
x->pn_canvas = canvas;
t_canvas *y = x->pn_canvas;
//t_preset_hub *h;
alist_init(&x->pn_val);
......@@ -932,7 +928,6 @@ typedef enum
void preset_hub_save(t_gobj *z, t_binbuf *b)
{
if(PH_DEBUG) fprintf(stderr,"preset_hub_save\n");
t_atom *outv;
int i;
t_preset_hub_data *phd;
t_node_preset *np;
......@@ -1066,7 +1061,6 @@ void preset_hub_store(t_preset_hub *h, t_float f)
t_preset_hub_data *hd1;
t_node_preset *np1, *np2;
int overwrite;
t_atom val;
int changed = 0;
np1 = NULL;
......@@ -1319,7 +1313,6 @@ void preset_hub_reset(t_preset_hub *h)
t_glob_preset_node_list *nl;
t_preset_hub_data *hd1, *hd2;
t_node_preset *np1, *np2;
t_preset_hub *h1, *h2;
int changed = 0;
if(PH_DEBUG) fprintf(stderr,"preset_hub_reset\n");
......@@ -1616,7 +1609,6 @@ void preset_hub_read(t_preset_hub *x, t_symbol *filename)
int loc_pos = 0;
int node_preset = -1;
int found_node = 0;
int found_preset = 0;
int ignore_entry = 0;
int data_count = 0;
......@@ -1897,7 +1889,6 @@ void preset_hub_write(t_preset_hub *x, t_symbol *filename)
t_atom ap[1];
int result = 0;
t_atom *outv;
int i;
t_preset_hub_data *phd;
t_node_preset *np;
......@@ -1993,7 +1984,6 @@ void preset_hub_readpreset(t_preset_hub *x, t_symbol *filename)
int loc_pos = 0;
int node_preset = -1;
int found_node = 0;
int found_preset = 0;
int ignore_entry = 0;
int data_count = 0;
......@@ -2289,7 +2279,6 @@ void preset_hub_writepreset(t_preset_hub *x, t_symbol *filename, float preset)
t_atom ap[1];
int result = 0;
t_atom *outv;
int i;
t_preset_hub_data *phd;
t_node_preset *np;
......@@ -2367,8 +2356,6 @@ void preset_hub_writepreset(t_preset_hub *x, t_symbol *filename, float preset)
static void *preset_hub_new(t_symbol *s, int argc, t_atom *argv)
{
if(PH_DEBUG) fprintf(stderr,"===preset_hub_new===\n");
t_glob_preset_node_list *nl;
t_glob_preset_hub_list *hl;
t_preset_hub_data *hd1, *hd2;
t_node_preset *np1, *np2;
t_hub_parser h_cur = H_NONE;
......@@ -2376,7 +2363,7 @@ static void *preset_hub_new(t_symbol *s, int argc, t_atom *argv)
t_preset_hub *x, *check;
t_atom *name;
int i, pos, loc_pos;
int j, data_count; //for lists
int data_count; //for lists
t_glist *glist=(t_glist *)canvas_getcurrent();
t_canvas *canvas = (t_canvas *)glist_getcanvas(glist);
......
......@@ -36,7 +36,6 @@ static t_class *qlist_class;
static void *qlist_new( void)
{
t_symbol *name, *filename = 0;
t_qlist *x = (t_qlist *)pd_new(qlist_class);
x->x_binbuf = binbuf_new();
x->x_clock = clock_new(x, (t_method)qlist_tick);
......@@ -243,7 +242,6 @@ typedef t_qlist t_textfile;
static void *textfile_new( void)
{
t_symbol *name, *filename = 0;
t_textfile *x = (t_textfile *)pd_new(textfile_class);
x->x_binbuf = binbuf_new();
outlet_new(&x->x_ob, &s_list);
......@@ -260,8 +258,7 @@ static void *textfile_new( void)
static void textfile_bang(t_textfile *x)
{
int argc = binbuf_getnatom(x->x_binbuf),
count, onset = x->x_onset, onset2;
int argc = binbuf_getnatom(x->x_binbuf), onset = x->x_onset, onset2;
t_atom *argv = binbuf_getvec(x->x_binbuf);
t_atom *ap = argv + onset, *ap2;
while (onset < argc &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment