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:
Lars-Peter Clausen 2022-06-14 09:17:56 +02:00
parent dba6798d12
commit b69eff2ab1
2 changed files with 0 additions and 19 deletions

View File

@ -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();

View File

@ -1919,7 +1919,6 @@ class NetUserFunc : public NetNode {
NetUserFunc(NetScope*s, perm_string n, NetScope*def, NetEvWait*trigger__);
~NetUserFunc();
ivl_variable_type_t data_type(unsigned port) const;
unsigned port_width(unsigned port) const;
const NetScope* def() const;