1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-17 16:50:26 +02:00

Remove obsolete mentions of DirManager in comments

This commit is contained in:
Paul Licameli 2020-07-20 19:03:40 -04:00
parent bd6536f3c4
commit 061208c5cf
2 changed files with 3 additions and 6 deletions

View File

@ -1263,7 +1263,6 @@ bool AudacityApp::OnInit()
// AColor depends on theTheme.
AColor::Init();
// Init DirManager, which initializes the temp directory
// If this fails, we must exit the program.
if (!InitTempDir()) {
FinishPreferences();

View File

@ -706,7 +706,6 @@ void ProjectManager::OnCloseWindow(wxCloseEvent & event)
#endif
// DanH: If we're definitely about to quit, clear the clipboard.
// Doing this after Deref'ing the DirManager causes problems.
auto &clipboard = Clipboard::Get();
if ((AllProjects{}.size() == 1) &&
(quitOnClose || AllProjects::Closing()))
@ -744,11 +743,11 @@ void ProjectManager::OnCloseWindow(wxCloseEvent & event)
{
AutoCommitTransaction trans(projectFileIO, "Shutdown");
// This must be done before the following Deref() since it holds
// references to the DirManager.
// This can reduce reference counts of sample blocks in the project's
// tracks.
UndoManager::Get( project ).ClearStates();
// Delete all the tracks to free up memory and DirManager references.
// Delete all the tracks to free up memory
tracks.Clear();
}
@ -922,7 +921,6 @@ void ProjectManager::ResetProjectToEmpty() {
SelectUtilities::DoSelectAll( project );
TrackUtilities::DoRemoveTracks( project );
// A new DirManager.
TrackFactory::Reset( project );
projectFileManager.Reset();