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
903b990a10
commit
091edbac09
|
|
@ -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…
Reference in New Issue