Skip to content

Commit

Permalink
Removed redundant accessor functions. Signed-off-by: Andy Fox. andy@r…
Browse files Browse the repository at this point in the history
…ushc.com

Signed-off-by: andyfox-rushc <[email protected]>
  • Loading branch information
andyfox-rushc committed Aug 6, 2024
1 parent 7d7cc35 commit fdcb385
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
2 changes: 1 addition & 1 deletion src/dbSta/src/dbReadVerilog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ void Verilog2db::makeDbModule(
dbModBTerm* modbterm
= dbModBTerm::create(module, bus_bit_port.c_str());
if (i == 0) {
dbbusport->setFirstMember(modbterm);
dbbusport->setMembers(modbterm);
}
if (i == size - 1) {
dbbusport->setLast(modbterm);
Expand Down
2 changes: 0 additions & 2 deletions src/odb/include/odb/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -7169,8 +7169,6 @@ class dbBusPort : public dbObject
// get element by bit index in bus (allows for up/down)
// linear access
dbModBTerm* getBusIndexedElement(int index);
void setFirstMember(dbModBTerm*);
dbModBTerm* getFirstMember();
dbSet<dbModBTerm> getBusPortMembers();
int getSize() const;
bool getUpdown() const;
Expand Down
21 changes: 0 additions & 21 deletions src/odb/src/db/dbBusPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,27 +302,6 @@ dbModBTerm* dbBusPort::getBusIndexedElement(int index)
return nullptr;
}

void dbBusPort::setFirstMember(dbModBTerm* modbterm)
{
if (modbterm) {
_dbBusPort* obj = (_dbBusPort*) this;
_dbModBTerm* mbt = (_dbModBTerm*) modbterm;
obj->_members = mbt->getId();
}
}

dbModBTerm* dbBusPort::getFirstMember()
{
_dbBusPort* obj = (_dbBusPort*) this;
_dbBlock* block = (_dbBlock*) obj->getOwner();
if (obj->_members != 0) {
dbModBTerm* ret
= (dbModBTerm*) (block->_modbterm_tbl->getPtr(obj->_members));
return ret;
}
return nullptr;
}

int dbBusPort::getSize() const
{
_dbBusPort* obj = (_dbBusPort*) this;
Expand Down

0 comments on commit fdcb385

Please sign in to comment.