1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-23 07:40:05 +02:00

Remove unused mLastAutoSaveTime cruft. Comment out other no-op cruft.

This commit is contained in:
v.audacity 2011-05-28 00:42:07 +00:00
parent 6e6d709821
commit 1f7a46a620
2 changed files with 8 additions and 7 deletions

View File

@ -745,7 +745,6 @@ AudacityProject::AudacityProject(wxWindow * parent, wxWindowID id,
mLastFocusedWindow(NULL),
mKeyboardCaptured(false),
mImportXMLTagHandler(NULL),
mLastAutoSaveTime(0),
mAutoSaving(false),
mIsRecovered(false),
mRecordingRecoveryHandler(NULL),
@ -4337,7 +4336,11 @@ void AudacityProject::AutoSave()
{
// To minimize the possibility of race conditions, we first write to a
// file with the extension ".tmp", then rename the file to .autosave
SonifyBeginAutoSave();
// FIX-ME: What's up with this no-op cruft that's not #ifdefed for NoteTrack?
// Let's not clutter the code with stuff that's not implemented, and not
// even clear we ever will need it.
//vvvvv (part of RBD's r10680 stuff to back out.)
// SonifyBeginAutoSave();
wxString projName;
if (mFileName.IsEmpty())
@ -4392,8 +4395,9 @@ void AudacityProject::AutoSave()
}
mAutoSaveFileName += fn + wxT(".autosave");
mLastAutoSaveTime = wxGetLocalTime();
SonifyEndAutoSave();
// no-op cruft that's not #ifdefed for NoteTrack
// See above for further comments.
// SonifyEndAutoSave();
}
void AudacityProject::DeleteCurrentAutoSaveFile()

View File

@ -531,9 +531,6 @@ class AUDACITY_DLL_API AudacityProject: public wxFrame,
// Last auto-save file name and path (empty if none)
wxString mAutoSaveFileName;
// When the last auto-save took place (as returned wx wxGetLocalTime)
long mLastAutoSaveTime;
// Are we currently auto-saving or not?
bool mAutoSaving;