subckt.c, translate(), #4/8 trailing 's' is never used

This commit is contained in:
rlar 2016-11-20 18:45:53 +01:00
parent 8563e0e8af
commit 2a0df8354b
1 changed files with 2 additions and 8 deletions

View File

@ -1016,8 +1016,7 @@ translate(struct line *deck, char *formal, char *actual, char *scname, const cha
case '*': case '*':
case '$': case '$':
case '.': case '.':
/* Just a pointer to the line into s and then break */ continue;
break;
#ifdef XSPICE #ifdef XSPICE
/*=================== case A ====================*/ /*=================== case A ====================*/
@ -1085,9 +1084,6 @@ translate(struct line *deck, char *formal, char *actual, char *scname, const cha
bxx_printf(&buffer, "%s", name); bxx_printf(&buffer, "%s", name);
tfree(name); tfree(name);
} }
/* Set s to null string for compatibility with code */
/* after switch statement */
s = "";
break; /* case 'a' */ break; /* case 'a' */
/* gtri - end - wbk - 10/23/90 */ /* gtri - end - wbk - 10/23/90 */
@ -1211,7 +1207,6 @@ translate(struct line *deck, char *formal, char *actual, char *scname, const cha
/* Now write out remainder of line (polynomial coeffs) */ /* Now write out remainder of line (polynomial coeffs) */
finishLine(&buffer, s, scname); finishLine(&buffer, s, scname);
s = "";
break; break;
@ -1271,11 +1266,10 @@ translate(struct line *deck, char *formal, char *actual, char *scname, const cha
* i(something)... * i(something)...
*/ */
finishLine(&buffer, s, scname); finishLine(&buffer, s, scname);
s = ""; break;
} /* switch (c->li_line . . . . */ } /* switch (c->li_line . . . . */
bxx_printf(&buffer, "%s", s);
tfree(c->li_line); tfree(c->li_line);
c->li_line = copy(bxx_buffer(&buffer)); c->li_line = copy(bxx_buffer(&buffer));