mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Remove unused function
This commit is contained in:
parent
e115e736fa
commit
428d7c8e11
|
@ -162,29 +162,6 @@ static RTLIL::Wire* createWireIfNotExists(RTLIL::Module *module, unsigned litera
|
||||||
return wire;
|
return wire;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::pair<RTLIL::IdString, int> wideports_split(std::string name)
|
|
||||||
{
|
|
||||||
int pos = -1;
|
|
||||||
|
|
||||||
if (name.empty() || name.back() != ']')
|
|
||||||
goto failed;
|
|
||||||
|
|
||||||
for (int i = 0; i+1 < GetSize(name); i++) {
|
|
||||||
if (name[i] == '[')
|
|
||||||
pos = i;
|
|
||||||
else if (name[i] < '0' || name[i] > '9')
|
|
||||||
pos = -1;
|
|
||||||
else if (i == pos+1 && name[i] == '0' && name[i+1] != ']')
|
|
||||||
pos = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pos >= 0)
|
|
||||||
return std::pair<RTLIL::IdString, int>(RTLIL::escape_id(name.substr(0, pos)), atoi(name.c_str() + pos+1));
|
|
||||||
|
|
||||||
failed:
|
|
||||||
return std::pair<RTLIL::IdString, int>(name, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
void AigerReader::parse_xaiger()
|
void AigerReader::parse_xaiger()
|
||||||
{
|
{
|
||||||
std::string header;
|
std::string header;
|
||||||
|
|
Loading…
Reference in a new issue