summaryrefslogtreecommitdiffstats
path: root/src/dotdirdeps.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-01-05 08:49:12 (GMT)
committerGitHub <noreply@github.com>2021-01-05 08:49:12 (GMT)
commitb2f14c3c6410c0b57bb12bddc806c91b6200df7a (patch)
tree024cfbb1b403a0293b4de7a2e16b8eee2ab90c51 /src/dotdirdeps.cpp
parent961c2472ea54751fa1be4df977ab9c9f8998dab7 (diff)
parent6916b03899f9980b536c5735c8069a15eff4e5ce (diff)
downloadDoxygen-b2f14c3c6410c0b57bb12bddc806c91b6200df7a.zip
Doxygen-b2f14c3c6410c0b57bb12bddc806c91b6200df7a.tar.gz
Doxygen-b2f14c3c6410c0b57bb12bddc806c91b6200df7a.tar.bz2
Merge pull request #8306 from dhebbeker/feature/remove-check-of-isParentOf
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 e188a80..da6364f 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);