Browse Source

frontend/device.c, com_alter_common(), #6/11 thats always true, drop `type'

pre-master-46
rlar 10 years ago
parent
commit
8fb0143043
  1. 5
      src/frontend/device.c

5
src/frontend/device.c

@ -1311,7 +1311,7 @@ com_alter_common(wordlist *wl, int do_model)
alter @vin[pulse] = [ 0 5 10n 10n 10n 50n 100n ] alter @vin[pulse] = [ 0 5 10n 10n 10n 50n 100n ]
*/ */
char *xsbuf, *rem_xsbuf; char *xsbuf, *rem_xsbuf;
int type = IF_REALVEC, i = 0;
int i = 0;
double *list; double *list;
double tmp; double tmp;
@ -1327,8 +1327,6 @@ com_alter_common(wordlist *wl, int do_model)
dv->v_name = copy("real vector"); dv->v_name = copy("real vector");
dv->v_type = SV_NOTYPE; dv->v_type = SV_NOTYPE;
dv->v_flags = VF_REAL; dv->v_flags = VF_REAL;
type &= IF_VARTYPES;
if (type == IF_REALVEC) {
list = TMALLOC(double, 1); list = TMALLOC(double, 1);
for (;;) { for (;;) {
tmp = INPevaluate(&xsbuf, &error, 1); tmp = INPevaluate(&xsbuf, &error, 1);
@ -1339,7 +1337,6 @@ com_alter_common(wordlist *wl, int do_model)
list[i++] = tmp; list[i++] = tmp;
} }
dv->v_realdata = list; dv->v_realdata = list;
}
dv->v_length = i; dv->v_length = i;
if (dv->v_length < 1) { if (dv->v_length < 1) {

Loading…
Cancel
Save