@@ -346,30 +346,6 @@ std::string dbInst::getName() const
346346 return inst->_name ;
347347}
348348
349- std::string dbInst::getHierarchicalName () const
350- {
351- _dbInst* inst = (_dbInst*) this ;
352- if (inst->_module == 0 ) {
353- return inst->_name ;
354- }
355-
356- dbBlock* block = getBlock ();
357- _dbBlock* block_impl = (_dbBlock*) block;
358- _dbModule* module = block_impl->_module_tbl ->getPtr (inst->_module );
359- if (module ->_mod_inst == 0 ) { // top module
360- return inst->_name ;
361- }
362-
363- _dbModInst* mod_inst_impl
364- = block_impl->_modinst_tbl ->getPtr (module ->_mod_inst );
365- dbModInst* mod_inst = (dbModInst*) mod_inst_impl;
366- // A non-null mod_inst is expected for non-top modules.
367- // The hierarchical name is constructed by prepending the parent module
368- // instance's hierarchical name and the delimiter.
369- return mod_inst->getHierarchicalName () + block->getHierarchyDelimiter ()
370- + inst->_name ;
371- }
372-
373349const char * dbInst::getConstName () const
374350{
375351 _dbInst* inst = (_dbInst*) this ;
@@ -1547,7 +1523,7 @@ void dbInst::destroy(dbInst* inst_)
15471523 " ECO: delete dbInst({}, {:p}) '{}'" ,
15481524 inst->getId (),
15491525 static_cast <void *>(inst),
1550- inst_->getHierarchicalName ());
1526+ inst_->getName ());
15511527 auto master = inst_->getMaster ();
15521528 block->_journal ->beginAction (dbJournal::DELETE_OBJECT);
15531529 block->_journal ->pushParam (dbInstObj);
0 commit comments