summaryrefslogtreecommitdiffstats
path: root/src/dotdirdeps.cpp
diff options
context:
space:
mode:
authorDavid Hebbeker <david@hebbeker.info>2021-01-02 14:51:26 (GMT)
committerDavid Hebbeker <david@hebbeker.info>2021-01-02 14:51:26 (GMT)
commit6916b03899f9980b536c5735c8069a15eff4e5ce (patch)
tree02ad031f356ff8312d7a0707e0582f79b7730b97 /src/dotdirdeps.cpp
parentf80b03899246f9b2e0d52bafafffaca01ad08f0f (diff)
downloadDoxygen-6916b03899f9980b536c5735c8069a15eff4e5ce.zip
Doxygen-6916b03899f9980b536c5735c8069a15eff4e5ce.tar.gz
Doxygen-6916b03899f9980b536c5735c8069a15eff4e5ce.tar.bz2
Optimize: usedDir can not be parent of dd if they have the same parent.
Diffstat (limited to 'src/dotdirdeps.cpp')
-rw-r--r--src/dotdirdeps.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dotdirdeps.cpp b/src/dotdirdeps.cpp
index f049527..db5be2a 100644
--- a/src/dotdirdeps.cpp
+++ b/src/dotdirdeps.cpp
@@ -81,7 +81,7 @@ void writeDotDirDepGraph(FTextStream &t,const DirDef *dd,bool linkRelations)
// draw all directories which have `dd->parent()` as parent and `dd` as dependent
const auto newEnd = std::remove_if(usedDirsNotDrawn.begin(), usedDirsNotDrawn.end(), [&](const DirDef *const usedDir)
{
- if (dd!=usedDir && dd->parent()==usedDir->parent() && !usedDir->isParentOf(dd))
+ if (dd!=usedDir && dd->parent()==usedDir->parent())
{
drawDirectory(t, usedDir, usedDir->isCluster() && !Config_getBool(DOT_TRANSPARENT), dirsInGraph);
return true;
@@ -136,8 +136,7 @@ void writeDotDirDepGraph(FTextStream &t,const DirDef *dd,bool linkRelations)
// shortName().data(),
// !usedDir->isParentOf(this)
// );
- if (dir!=usedDir && dir->parent()==usedDir->parent() &&
- !usedDir->isParentOf(dd))
+ if (dir!=usedDir && dir->parent()==usedDir->parent())
// include if both have the same parent (or no parent)
{
drawDirectory(t, usedDir, usedDir->isCluster() && !Config_getBool(DOT_TRANSPARENT), dirsInGraph);