From 2a4c34c4016c821fec06e46e31be90473babfebc Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 20 Nov 2016 18:45:53 +0100 Subject: [PATCH] subckt.c, translate(), #5/8 trailing 's' is never used --- src/frontend/subckt.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/frontend/subckt.c b/src/frontend/subckt.c index 9c85fba65..09e0847d2 100644 --- a/src/frontend/subckt.c +++ b/src/frontend/subckt.c @@ -972,8 +972,7 @@ translate(struct line *deck, char *formal, char *actual, char *scname, const cha case '*': case '$': case '.': - /* Just a pointer to the line into s and then break */ - break; + continue; #ifdef XSPICE /*=================== case A ====================*/ @@ -1041,9 +1040,6 @@ translate(struct line *deck, char *formal, char *actual, char *scname, const cha bxx_printf(&buffer, "%s", name); tfree(name); } - /* Set s to null string for compatibility with code */ - /* after switch statement */ - s = ""; break; /* case 'a' */ /* gtri - end - wbk - 10/23/90 */ @@ -1167,7 +1163,6 @@ translate(struct line *deck, char *formal, char *actual, char *scname, const cha /* Now write out remainder of line (polynomial coeffs) */ finishLine(&buffer, s, scname); - s = ""; break; @@ -1227,11 +1222,10 @@ translate(struct line *deck, char *formal, char *actual, char *scname, const cha * i(something)... */ finishLine(&buffer, s, scname); - s = ""; + break; } /* switch (c->li_line . . . . */ - bxx_printf(&buffer, "%s", s); tfree(c->li_line); c->li_line = copy(bxx_buffer(&buffer));