From 4cf2b5e5ce56996cb87eea0418671cb44dd951b4 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 11 Aug 2019 09:49:27 +0200 Subject: [PATCH] remove commenting out unused .model lines from comment_out_unused_subckt_models(). This now handled by inp_rem_unused_models() taking appropriate scoping into account. --- src/frontend/inpcom.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index a7f8da88a..ce263fd20 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1985,7 +1985,7 @@ static const char *nlist_find(const struct nlist *nlist, const char *name) return NULL; } - +#if 0 static const char *nlist_model_find( const struct nlist *nlist, const char *name) { @@ -1995,7 +1995,7 @@ static const char *nlist_model_find( return nlist->names[i]; return NULL; } - +#endif static void nlist_adjoin(struct nlist *nlist, char *name) { @@ -2201,6 +2201,7 @@ static void comment_out_unused_subckt_models(struct card *start_card) if (remove_subckt) *line = '*'; +#if 0 else if (has_models && (ciprefix(".model", line) || ciprefix(".cmodel", line))) { char *model_type = get_model_type(line); @@ -2219,6 +2220,7 @@ static void comment_out_unused_subckt_models(struct card *start_card) tfree(model_type); tfree(model_name); } +#endif } nlist_destroy(used_subckts);