From 4b66d40d62bab44a0eb5d948690ed9b478244f0a Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Sun, 15 May 2022 22:19:10 +0200 Subject: [PATCH] Remove unused `calculate_count()` function The templatized version of `calculate_count()` that is used on a data type is not used. Remove it. Signed-off-by: Lars-Peter Clausen --- netlist.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/netlist.cc b/netlist.cc index 732df78e5..5fbcb885c 100644 --- a/netlist.cc +++ b/netlist.cc @@ -537,15 +537,6 @@ static unsigned calculate_count(const list&unpacked) return sum; } -template static unsigned calculate_count(T*type) -{ - long wid = type->packed_width(); - if (wid >= 0) - return wid; - else - return 1; -} - void NetNet::calculate_slice_widths_from_packed_dims_(void) { ivl_assert(*this, net_type_);