From c4d39d66de8175c575dbb0b08e05b14934bc4b9a Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 10 Jul 2016 17:30:28 +0200 Subject: [PATCH] INPparseNumMod(), #11/14, remove unused 'cardType' --- src/spicelib/parser/inpgmod.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/spicelib/parser/inpgmod.c b/src/spicelib/parser/inpgmod.c index f6db24a4c..8410bc308 100644 --- a/src/spicelib/parser/inpgmod.c +++ b/src/spicelib/parser/inpgmod.c @@ -331,7 +331,6 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess char *line; char *cardName = NULL; /* name of a card */ char *parm; /* name of a parameter */ - int cardType; /* type/index for the current card */ int cardNum = 0; /* number of this card in the overall line */ int lastType = E_MISSING; /* type of previous card */ char *err = NULL, *tmp; /* Strings for error messages */ @@ -348,7 +347,6 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess /* Now parse each remaining card */ for (; txtCard; txtCard = txtCard->nextcard) { line = txtCard->line; - cardType = E_MISSING; cardNum++; /* Skip the initial '+' and any whitespace. */ @@ -374,14 +372,10 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess lastType = E_MISSING; continue; } - cardType = lastType; while (*line == '+') line++; /* Skip leading '+'s */ - lastType = cardType; - // cardType is not used downwards from here break; default: - lastType = cardType; - // cardType is not used downwards from here + lastType = E_MISSING; break; }