From 47b4621da19d271b6b8de23448707d3400ec2fab Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Mon, 10 Jan 2022 09:57:09 +0100 Subject: [PATCH] Remove NetNet::get_isint() NetNet::get_isint() is never used anywhere, remove it. The information whether a signal is an integer is always directly queried from the signal data type. Signed-off-by: Lars-Peter Clausen --- netlist.cc | 8 -------- netlist.h | 4 ---- 2 files changed, 12 deletions(-) diff --git a/netlist.cc b/netlist.cc index 21a44faea..a7e129c7f 100644 --- a/netlist.cc +++ b/netlist.cc @@ -716,14 +716,6 @@ bool NetNet::get_signed() const return net_type_->get_signed(); } -bool NetNet::get_isint() const -{ - if (const netvector_t*vec = dynamic_cast (net_type_)) - return vec->get_isint(); - else - return false; -} - bool NetNet::get_scalar() const { if (const netvector_t*vec = dynamic_cast (net_type_)) diff --git a/netlist.h b/netlist.h index dd6b9dbb7..392d6480d 100644 --- a/netlist.h +++ b/netlist.h @@ -705,10 +705,6 @@ class NetNet : public NetObj, public PortType { signed. Otherwise, it is unsigned. */ bool get_signed() const; - /* Used to maintain original type of net since integers are - implemented as 'reg signed [31:0]' in Icarus */ - bool get_isint() const; - bool get_scalar() const; inline const ivl_type_s* net_type(void) const { return net_type_; }