Remove `NetUserFunc::data_type()`
The `NetUserFunc::data_type()` method is never called. Remove it. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
parent
dba6798d12
commit
b69eff2ab1
18
net_func.cc
18
net_func.cc
|
|
@ -50,24 +50,6 @@ NetUserFunc::~NetUserFunc()
|
|||
{
|
||||
}
|
||||
|
||||
ivl_variable_type_t NetUserFunc::data_type(unsigned port) const
|
||||
{
|
||||
NetFuncDef*fdef = def_->func_def();
|
||||
|
||||
/* Port 0 is the return port. */
|
||||
if (port == 0) {
|
||||
const NetNet*sig = fdef->return_sig();
|
||||
assert(sig);
|
||||
return sig->data_type();
|
||||
}
|
||||
|
||||
port -= 1;
|
||||
assert(port < fdef->port_count());
|
||||
const NetNet*port_sig = fdef->port(port);
|
||||
|
||||
return port_sig->data_type();
|
||||
}
|
||||
|
||||
unsigned NetUserFunc::port_width(unsigned port) const
|
||||
{
|
||||
NetFuncDef*fdef = def_->func_def();
|
||||
|
|
|
|||
Loading…
Reference in New Issue