From 15c00a9d42e6a38d081d00e3b3090d0afafa21fd Mon Sep 17 00:00:00 2001 From: rlar Date: Wed, 27 Dec 2017 14:27:37 +0100 Subject: [PATCH] spicenum.c, drop dologfileS, logfileS and nblogS which are never set --- src/frontend/numparam/spicenum.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/frontend/numparam/spicenum.c b/src/frontend/numparam/spicenum.c index 3eecbe3cd..9aa3860bc 100644 --- a/src/frontend/numparam/spicenum.c +++ b/src/frontend/numparam/spicenum.c @@ -351,12 +351,9 @@ transform(dico_t *dico, SPICE_DSTRINGPTR dstr_p, bool incontrol) static int linecountS = 0; /* global: number of lines received via nupa_copy */ static int evalcountS = 0; /* number of lines through nupa_eval() */ -static int nblogS = 0; /* serial number of (debug) logfile */ static bool inexpansionS = 0; /* flag subckt expansion phase */ static bool incontrolS = 0; /* flag control code sections */ -static bool dologfileS = 0; /* for debugging */ static bool firstsignalS = 1; -static FILE *logfileS = NULL; static dico_t *dicoS = NULL; @@ -369,17 +366,8 @@ static dico_t *dicoS = NULL; static void putlogfile(char c, int num, char *t) { - if (!dologfileS) + if (1) return; - - if (!logfileS) { - char *fname = tprintf("logfile.%d", ++nblogS); - logfileS = fopen(fname, "w"); - tfree(fname); - } - - if (logfileS) - fprintf(logfileS, "%c%d: %s\n", c, num, t); } @@ -434,11 +422,6 @@ nupa_done(void) int nerrors = dicoS->errcount; int dictsize = donedico(dicoS); - if (logfileS) { - fclose(logfileS); - logfileS = NULL; - } - /* We cannot remove dicoS here because numparam is used by the .measure statements, which are invoked only after the simulation has finished. */