Remove unused pform_makewire() variants

There are two versions of pform_makewire() that are not used anywhere,
remove them.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
Lars-Peter Clausen 2022-01-09 09:55:37 +01:00
parent 96a1cbf7b2
commit 47b6ee714d
3 changed files with 0 additions and 77 deletions

View File

@ -2823,36 +2823,6 @@ void pform_makewire(const vlltype&li, perm_string name,
}
}
/*
* This form takes a list of names and some type information, and
* generates a bunch of variables/nets. We use the basic
* pform_makewire above.
*/
void pform_makewire(const vlltype&li,
list<pform_range_t>*range,
bool signed_flag,
list<perm_string>*names,
NetNet::Type type,
NetNet::PortType pt,
ivl_variable_type_t dt,
list<named_pexpr_t>*attr,
PWSRType rt)
{
for (list<perm_string>::iterator cur = names->begin()
; cur != names->end() ; ++ cur ) {
perm_string txt = *cur;
pform_makewire(li, txt, type, pt, dt, attr);
/* This has already been done for real variables. */
if (dt != IVL_VT_REAL) {
pform_set_net_range(txt, type, range, signed_flag, dt, rt, 0);
}
}
delete names;
delete range;
delete attr;
}
/*
* This form makes nets with delays and continuous assignments.
*/

18
pform.h
View File

@ -359,17 +359,6 @@ extern void pform_makewire(const struct vlltype&li, perm_string name,
ivl_variable_type_t,
std::list<named_pexpr_t>*attr);
/* This form handles simple declarations */
extern void pform_makewire(const struct vlltype&li,
std::list<pform_range_t>*range,
bool signed_flag,
std::list<perm_string>*names,
NetNet::Type type,
NetNet::PortType,
ivl_variable_type_t,
std::list<named_pexpr_t>*attr,
PWSRType rt = SR_NET);
/* This form handles assignment declarations. */
extern void pform_makewire(const struct vlltype&li,
std::list<PExpr*>*delay,
@ -385,13 +374,6 @@ extern void pform_makewire(const struct vlltype&li,
NetNet::Type type,
data_type_t*data_type);
/* This form handles nets declared as structures. (See pform_struct_type.cc) */
extern void pform_makewire(const struct vlltype&li,
struct_type_t*struct_type,
NetNet::PortType,
std::list<perm_string>*names,
std::list<named_pexpr_t>*attr);
extern void pform_make_var_init(const struct vlltype&li,
perm_string name, PExpr*expr);

View File

@ -91,32 +91,3 @@ void pform_set_struct_type(const struct vlltype&li, struct_type_t*struct_type, l
pform_set_struct_type(li, struct_type, *cur, net_type, attr);
}
}
static void pform_makewire(const struct vlltype&li,
struct_type_t*struct_type,
NetNet::PortType ptype,
perm_string name,
list<named_pexpr_t>*)
{
ivl_variable_type_t base_type = struct_type->figure_packed_base_type();
PWire*cur = pform_get_make_wire_in_scope(li, name, NetNet::WIRE, ptype, base_type);
assert(cur);
FILE_NAME(cur, li);
cur->set_data_type(struct_type);
}
void pform_makewire(const struct vlltype&li,
struct_type_t*struct_type,
NetNet::PortType ptype,
list<perm_string>*names,
list<named_pexpr_t>*attr)
{
for (list<perm_string>::iterator cur = names->begin()
; cur != names->end() ; ++ cur ) {
perm_string txt = *cur;
pform_makewire(li, struct_type, ptype, txt, attr);
}
delete names;
}