mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-12 01:15:39 +01:00
AUP3: Removes OD code related to project file handling
This removes all of the OnDemand code embedded throughout
the main codebase. Individual files related specifically
to OD have been left in place, but removed from the build.
This commit is contained in:
@@ -85,7 +85,6 @@ UndoManager::UndoManager( AudacityProject &project )
|
||||
{
|
||||
current = -1;
|
||||
saved = -1;
|
||||
ResetODChangesFlag();
|
||||
}
|
||||
|
||||
UndoManager::~UndoManager()
|
||||
@@ -392,13 +391,12 @@ void UndoManager::Redo(const Consumer &consumer)
|
||||
|
||||
bool UndoManager::UnsavedChanges() const
|
||||
{
|
||||
return (saved != current) || HasODChangesFlag();
|
||||
return (saved != current);
|
||||
}
|
||||
|
||||
void UndoManager::StateSaved()
|
||||
{
|
||||
saved = current;
|
||||
ResetODChangesFlag();
|
||||
}
|
||||
|
||||
// currently unused
|
||||
@@ -412,26 +410,3 @@ void UndoManager::StateSaved()
|
||||
// }
|
||||
//}
|
||||
|
||||
///to mark as unsaved changes without changing the state/tracks.
|
||||
void UndoManager::SetODChangesFlag()
|
||||
{
|
||||
mODChangesMutex.Lock();
|
||||
mODChanges=true;
|
||||
mODChangesMutex.Unlock();
|
||||
}
|
||||
|
||||
bool UndoManager::HasODChangesFlag() const
|
||||
{
|
||||
bool ret;
|
||||
mODChangesMutex.Lock();
|
||||
ret=mODChanges;
|
||||
mODChangesMutex.Unlock();
|
||||
return ret;
|
||||
}
|
||||
|
||||
void UndoManager::ResetODChangesFlag()
|
||||
{
|
||||
mODChangesMutex.Lock();
|
||||
mODChanges=false;
|
||||
mODChangesMutex.Unlock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user