Remove unused `make_range_from_width()`

The last user of the `make_range_from_width()` was removed in commit
f6042033d0 ("Correctly handle separate port type declaration for
`integer` and `time`").

Remove the function itself as well.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
Lars-Peter Clausen 2022-06-14 09:16:49 +02:00
parent b69eff2ab1
commit f1e50e927b
2 changed files with 0 additions and 12 deletions

11
parse.y
View File

@ -149,17 +149,6 @@ static std::list<pform_port_t>* make_port_list(list<pform_port_t>*tmp,
return tmp;
}
list<pform_range_t>* make_range_from_width(uint64_t wid)
{
pform_range_t range;
range.first = new PENumber(new verinum(wid-1, integer_width));
range.second = new PENumber(new verinum((uint64_t)0, integer_width));
std::list<pform_range_t>*rlist = new std::list<pform_range_t>;
rlist->push_back(range);
return rlist;
}
static std::list<perm_string>* list_from_identifier(char*id)
{
std::list<perm_string>*tmp = new std::list<perm_string>;

View File

@ -97,7 +97,6 @@ struct parmvalue_t {
struct str_pair_t { ivl_drive_t str0, str1; };
extern std::list<pform_range_t>* make_range_from_width(uint64_t wid);
extern std::list<pform_range_t>* copy_range(std::list<pform_range_t>* orig);
/* Use this function to transform the parted form of the attribute