diff options
Diffstat (limited to 'src/definition.cpp')
-rw-r--r-- | src/definition.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index aa20c7b..9bf6acd 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -76,7 +76,6 @@ static void removeFromMap(Definition *d) Definition::Definition(const char *df,int dl, const char *name,const char *b, const char *d,bool isSymbol) - : m_reachableDefs(17) { //QCString ns; m_defFileName = df; @@ -112,8 +111,6 @@ Definition::Definition(const char *df,int dl, m_docFile=(QCString)"<"+name+">"; m_isSymbol = isSymbol; if (m_isSymbol) addToMap(name,this); - m_reachableDefs.setAutoDelete(TRUE); - m_reachabilityComputed=FALSE; } Definition::~Definition() @@ -761,32 +758,3 @@ QCString Definition::convertNameToFile(const char *name,bool allowDots) const } } -void Definition::addReachableDef(Definition *def,int distance) -{ - if (m_reachableDefs.find(def->qualifiedName())) - { - m_reachableDefs.insert(def->qualifiedName(),new ReachableDefinition(def,distance)); - } -} - -void Definition::computeReachability() -{ - if (m_reachabilityComputed) return; - addReachableDef(this,0); - Definition *parent = getOuterScope(); - int i=1; - while (parent) - { - parent->computeReachability(); - QDictIterator<ReachableDefinition> dli(m_reachableDefs); - ReachableDefinition *rd; - for (dli.toFirst();(rd=dli.current());++dli) - { - addReachableDef(rd->def,i); - } - parent=parent->getOuterScope(); - i++; - } - m_reachabilityComputed=TRUE; -} - |