Browse Source

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.
pre-master-46
Holger Vogt 7 years ago
parent
commit
4cf2b5e5ce
  1. 6
      src/frontend/inpcom.c

6
src/frontend/inpcom.c

@ -1985,7 +1985,7 @@ static const char *nlist_find(const struct nlist *nlist, const char *name)
return NULL; return NULL;
} }
#if 0
static const char *nlist_model_find( static const char *nlist_model_find(
const struct nlist *nlist, const char *name) const struct nlist *nlist, const char *name)
{ {
@ -1995,7 +1995,7 @@ static const char *nlist_model_find(
return nlist->names[i]; return nlist->names[i];
return NULL; return NULL;
} }
#endif
static void nlist_adjoin(struct nlist *nlist, char *name) 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) if (remove_subckt)
*line = '*'; *line = '*';
#if 0
else if (has_models && else if (has_models &&
(ciprefix(".model", line) || ciprefix(".cmodel", line))) { (ciprefix(".model", line) || ciprefix(".cmodel", line))) {
char *model_type = get_model_type(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_type);
tfree(model_name); tfree(model_name);
} }
#endif
} }
nlist_destroy(used_subckts); nlist_destroy(used_subckts);

Loading…
Cancel
Save