Skip to content

Commit

Permalink
Refactoring: remove unused Doxygen::entryDBFileName and Doxygen::objD…
Browse files Browse the repository at this point in the history
…BFileName
  • Loading branch information
doxygen committed Jan 1, 2021
1 parent 7f920f6 commit 7f79d52
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 31 deletions.
3 changes: 0 additions & 3 deletions addon/doxyapp/doxyapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
2 changes: 0 additions & 2 deletions addon/doxyparse/doxyparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 0 additions & 24 deletions src/doxygen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ SDict<DirRelation> 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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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+"/");

Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -12004,7 +11981,6 @@ void generateOutput()

finalizeSearchIndexer();
QDir thisDir;
thisDir.remove(Doxygen::objDBFileName);
thisDir.remove(Doxygen::filterDBFileName);
finishWarnExit();
Config::deinit();
Expand Down
2 changes: 0 additions & 2 deletions src/doxygen.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ class Doxygen
static SDict<DirRelation> dirRelations;
static ParserManager *parserManager;
static bool suppressDocWarnings;
static QCString objDBFileName;
static QCString entryDBFileName;
static QCString filterDBFileName;
static bool userComments;
static IndexList *indexList;
Expand Down

0 comments on commit 7f79d52

Please sign in to comment.