Commit 96f4ed86 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

TrackHandler: Removing useless member nullOutput.

parent b6d883f4
......@@ -27,16 +27,11 @@
#include <QDomDocument>
#include <QDomElement>
Workflow::Frame *TrackHandler::nullOutput = NULL;
TrackHandler::TrackHandler( unsigned int nbTracks, MainWorkflow::TrackType trackType ) :
m_trackCount( nbTracks ),
m_trackType( trackType ),
m_length( 0 )
{
//FIXME -> This should be a NULL pointer.
TrackHandler::nullOutput = new Workflow::Frame( 0, 0);
m_tracks = new Toggleable<TrackWorkflow*>[nbTracks];
for ( unsigned int i = 0; i < nbTracks; ++i )
{
......@@ -47,11 +42,6 @@ TrackHandler::TrackHandler( unsigned int nbTracks, MainWorkflow::TrackType track
TrackHandler::~TrackHandler()
{
if ( nullOutput != NULL )
{
delete nullOutput;
nullOutput = NULL;
}
for (unsigned int i = 0; i < m_trackCount; ++i)
delete m_tracks[i];
delete[] m_tracks;
......
......@@ -107,7 +107,6 @@ class TrackHandler : public QObject
void activateTrack( unsigned int tracKId );
private:
static Workflow::Frame* nullOutput;
Toggleable<TrackWorkflow*>* m_tracks;
unsigned int m_trackCount;
MainWorkflow::TrackType m_trackType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment