diff --git a/src/frontend/inp.c b/src/frontend/inp.c index e245009c6..38118347a 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -510,10 +510,6 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile) startTime = seconds(); /* inp_source() called with fp: load from file, */ /* called with *fp == NULL and intfile: we want to load circuit from circarray */ - - /* Clear the flag indicating U* devices have been translated to Xspice */ - set_udevices_translated(FALSE); - if (fp || intfile) { deck = inp_readall(fp, dir_name, comfile, intfile, &expr_w_temper); diff --git a/src/frontend/inpc_probe.c b/src/frontend/inpc_probe.c index e68c737b9..7ef70ce93 100644 --- a/src/frontend/inpc_probe.c +++ b/src/frontend/inpc_probe.c @@ -11,7 +11,6 @@ #include "ngspice/inpdefs.h" #include "ngspice/wordlist.h" #include "ngspice/stringskip.h" -#include "inpcom.h" void inp_probe(struct card* card); void modprobenames(INPtables* tab); @@ -63,9 +62,6 @@ void inp_probe(struct card* deck) if (probes == NULL) return; - /* If were_udevices_translated() returns TRUE, then you can ignore alli */ - (void) were_udevices_translated(); - /* check for '.save' and (in a .control section) 'save'. If not found, add '.save all' */ for (card = deck; card; card = card->nextcard) { diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 25761a4f9..9c6d67a07 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -79,8 +79,6 @@ static struct library { static int num_libraries; -static bool udevices_translated = FALSE; - struct names { char *names[N_SUBCKT_W_PARAMS]; int num_names; @@ -8352,16 +8350,6 @@ static void rem_double_braces(struct card* newcard) } } -void set_udevices_translated(bool val) -{ - udevices_translated = val; -} - -bool were_udevices_translated(void) -{ - return udevices_translated; -} - #ifdef INTEGRATE_UDEVICES static void list_the_cards(struct card *startcard, char *prefix) { @@ -8466,7 +8454,6 @@ static struct card *u_instances(struct card *startcard) if (last_newcard) { last_newcard->nextcard = card; // the .ends card } - set_udevices_translated(TRUE); } else { models_ok = models_not_ok = 0; udev_ok = udev_not_ok = 0; diff --git a/src/frontend/inpcom.h b/src/frontend/inpcom.h index f57894bd6..3344f8fab 100644 --- a/src/frontend/inpcom.h +++ b/src/frontend/inpcom.h @@ -9,6 +9,4 @@ struct card *insert_new_line(struct card *card, char *line, int linenum, int linenum_orig); -void set_udevices_translated(bool val); -bool were_udevices_translated(void); #endif