From 7f79d52ff6da7bcabc6b0250ca93b4307358e8e3 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Fri, 1 Jan 2021 10:30:44 +0100 Subject: Refactoring: remove unused Doxygen::entryDBFileName and Doxygen::objDBFileName --- addon/doxyapp/doxyapp.cpp | 3 --- addon/doxyparse/doxyparse.cpp | 2 -- src/doxygen.cpp | 24 ------------------------ src/doxygen.h | 2 -- 4 files changed, 31 deletions(-) diff --git a/addon/doxyapp/doxyapp.cpp b/addon/doxyapp/doxyapp.cpp index b89c5d9..5fc07be 100644 --- a/addon/doxyapp/doxyapp.cpp +++ b/addon/doxyapp/doxyapp.cpp @@ -296,9 +296,6 @@ int main(int argc,char **argv) } } - // remove temporary files - if (!Doxygen::objDBFileName.isEmpty()) QFile::remove(Doxygen::objDBFileName); - if (!Doxygen::entryDBFileName.isEmpty()) QFile::remove(Doxygen::entryDBFileName); // clean up after us QDir().rmdir("/tmp/doxygen"); diff --git a/addon/doxyparse/doxyparse.cpp b/addon/doxyparse/doxyparse.cpp index df9069b..1181231 100644 --- a/addon/doxyparse/doxyparse.cpp +++ b/addon/doxyparse/doxyparse.cpp @@ -528,8 +528,6 @@ int main(int argc,char **argv) { QDir thisDir; // remove temporary files - if (!Doxygen::objDBFileName.isEmpty()) thisDir.remove(Doxygen::objDBFileName); - if (!Doxygen::entryDBFileName.isEmpty()) thisDir.remove(Doxygen::entryDBFileName); if (!Doxygen::filterDBFileName.isEmpty()) thisDir.remove(Doxygen::filterDBFileName); // clean up after us diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 3a4c5a3..c8813ef 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -153,8 +153,6 @@ SDict Doxygen::dirRelations(257); ParserManager *Doxygen::parserManager = 0; QCString Doxygen::htmlFileExtension; bool Doxygen::suppressDocWarnings = FALSE; -QCString Doxygen::objDBFileName; -QCString Doxygen::entryDBFileName; QCString Doxygen::filterDBFileName; IndexList *Doxygen::indexList; int Doxygen::subpageNestingLevel = 0; @@ -10707,14 +10705,6 @@ static void stopDoxygen(int) { QDir thisDir; msg("Cleaning up...\n"); - if (!Doxygen::entryDBFileName.isEmpty()) - { - thisDir.remove(Doxygen::entryDBFileName); - } - if (!Doxygen::objDBFileName.isEmpty()) - { - thisDir.remove(Doxygen::objDBFileName); - } if (!Doxygen::filterDBFileName.isEmpty()) { thisDir.remove(Doxygen::filterDBFileName); @@ -10813,14 +10803,6 @@ static void exitDoxygen() { QDir thisDir; msg("Exiting...\n"); - if (!Doxygen::entryDBFileName.isEmpty()) - { - thisDir.remove(Doxygen::entryDBFileName); - } - if (!Doxygen::objDBFileName.isEmpty()) - { - thisDir.remove(Doxygen::objDBFileName); - } if (!Doxygen::filterDBFileName.isEmpty()) { thisDir.remove(Doxygen::filterDBFileName); @@ -11107,10 +11089,6 @@ void parseInput() #endif uint pid = Portable::pid(); - Doxygen::objDBFileName.sprintf("doxygen_objdb_%d.tmp",pid); - Doxygen::objDBFileName.prepend(outputDirectory+"/"); - Doxygen::entryDBFileName.sprintf("doxygen_entrydb_%d.tmp",pid); - Doxygen::entryDBFileName.prepend(outputDirectory+"/"); Doxygen::filterDBFileName.sprintf("doxygen_filterdb_%d.tmp",pid); Doxygen::filterDBFileName.prepend(outputDirectory+"/"); @@ -11511,7 +11489,6 @@ void parseInput() g_s.end(); QDir thisDir; - thisDir.remove(Doxygen::entryDBFileName); g_s.begin("Determining which enums are documented\n"); findDocumentedEnumValues(); @@ -12004,7 +11981,6 @@ void generateOutput() finalizeSearchIndexer(); QDir thisDir; - thisDir.remove(Doxygen::objDBFileName); thisDir.remove(Doxygen::filterDBFileName); finishWarnExit(); Config::deinit(); diff --git a/src/doxygen.h b/src/doxygen.h index dc1b7bb..8fbd51a 100644 --- a/src/doxygen.h +++ b/src/doxygen.h @@ -132,8 +132,6 @@ class Doxygen static SDict dirRelations; static ParserManager *parserManager; static bool suppressDocWarnings; - static QCString objDBFileName; - static QCString entryDBFileName; static QCString filterDBFileName; static bool userComments; static IndexList *indexList; -- cgit v0.12