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.
This commit is contained in:
parent
6669cbc17c
commit
4cf2b5e5ce
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue