Remove dead code.
This commit is contained in:
parent
0288dc2b22
commit
0da3f3504d
|
|
@ -1248,30 +1248,8 @@ static BOOL gen_gates(PTABLE gate_tab, SYM_TAB parser_symbols)
|
||||||
}
|
}
|
||||||
ds_cat_printf(&instance, "%s ", get_inst_name());
|
ds_cat_printf(&instance, "%s ", get_inst_name());
|
||||||
if (in_count == 1) {
|
if (in_count == 1) {
|
||||||
/* If the input name is inv_out_<tail> use the <tail>
|
ds_cat_printf(&instance, "%s %s ", ds_get_buf(&in_names),
|
||||||
and instantiate an inverter to avoid an extra buffer.
|
ds_get_buf(&out_name));
|
||||||
*/
|
|
||||||
char *tail = NULL;
|
|
||||||
SYM_TAB ent;
|
|
||||||
tail = get_inv_tail(ds_get_buf(&in_names));
|
|
||||||
if (tail && strlen(tail) > 0) {
|
|
||||||
ds_clear(&gate_name);
|
|
||||||
ds_cat_str(&gate_name, lex_gate_name('~', TRUE));
|
|
||||||
ds_cat_printf(&instance, "%s %s ", tail,
|
|
||||||
ds_get_buf(&out_name));
|
|
||||||
ent = member_sym_tab(tail, parser_symbols);
|
|
||||||
if (!ent) {
|
|
||||||
goto gen_error;
|
|
||||||
}
|
|
||||||
if ((ent->attribute & SYM_INVERTER) == 0) {
|
|
||||||
goto gen_error;
|
|
||||||
}
|
|
||||||
ent->ref_count--;
|
|
||||||
} else {
|
|
||||||
ds_cat_printf(&instance, "%s %s ", ds_get_buf(&in_names),
|
|
||||||
ds_get_buf(&out_name));
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
ds_cat_printf(&instance, "[%s ] %s ", ds_get_buf(&in_names),
|
ds_cat_printf(&instance, "[%s ] %s ", ds_get_buf(&in_names),
|
||||||
ds_get_buf(&out_name));
|
ds_get_buf(&out_name));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue