mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-12 14:26:09 +01:00
WaveTrack.cpp does not depend on ODManager.cpp ...
... Breaking up an s.c.c. of 6 into 3 components: ODManager, ODTask, ODWaveTrackTaskQueue UndoManager WaveClip, WaveTrack Rewrite the OD tasks and queues to hold weak pointers to tracks, so the track destructor need not notify them.
This commit is contained in:
@@ -53,8 +53,6 @@ Track classes.
|
||||
|
||||
#include "Prefs.h"
|
||||
|
||||
#include "ondemand/ODManager.h"
|
||||
|
||||
#include "effects/TimeWarper.h"
|
||||
#include "prefs/SpectrogramSettings.h"
|
||||
#include "prefs/TracksPrefs.h"
|
||||
@@ -213,10 +211,6 @@ void WaveTrack::Merge(const Track &orig)
|
||||
|
||||
WaveTrack::~WaveTrack()
|
||||
{
|
||||
//Let the ODManager know this WaveTrack is disappearing.
|
||||
//Deschedules tasks associated with this track.
|
||||
if(ODManager::IsInstanceCreated())
|
||||
ODManager::Instance()->RemoveWaveTrack(this);
|
||||
}
|
||||
|
||||
double WaveTrack::GetOffset() const
|
||||
|
||||
Reference in New Issue
Block a user