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

Workflow: Removing useless effects setter.

parent fd27bbd5
......@@ -72,12 +72,6 @@ MainWorkflow::~MainWorkflow()
delete m_blackOutput;
}
EffectsEngine::EffectHelper*
MainWorkflow::addEffect( Effect *effect, quint32 trackId, const QUuid &uuid, Workflow::TrackType type )
{
return m_tracks[type]->addEffect( effect, trackId, uuid );
}
void
MainWorkflow::computeLength()
{
......
......@@ -57,9 +57,6 @@ class MainWorkflow : public QObject, public Singleton<MainWorkflow>
Q_OBJECT
public:
EffectsEngine::EffectHelper *addEffect( Effect* effect, quint32 trackId,
const QUuid &uuid, Workflow::TrackType type );
/**
* \brief Initialize the workflow for the render.
*
......
......@@ -48,12 +48,6 @@ TrackHandler::~TrackHandler()
delete[] m_tracks;
}
EffectsEngine::EffectHelper*
TrackHandler::addEffect( Effect *effect, quint32 trackId, const QUuid &uuid )
{
return m_tracks[trackId]->addEffect( effect, uuid );
}
void
TrackHandler::startRender( quint32 width, quint32 height, double fps )
{
......
......@@ -38,7 +38,6 @@ class TrackHandler : public QObject
TrackHandler( unsigned int nbTracks, Workflow::TrackType trackType );
~TrackHandler();
EffectsEngine::EffectHelper *addEffect( Effect *effect, quint32 trackId, const QUuid &uuid );
/**
* Returns the number of tracks in this handler
*/
......
......@@ -95,21 +95,6 @@ TrackWorkflow::addClip( ClipWorkflow* cw, qint64 start )
computeLength();
}
EffectsEngine::EffectHelper*
TrackWorkflow::addEffect( Effect *effect, const QUuid &uuid )
{
QMap<qint64, ClipWorkflow*>::const_iterator it = m_clips.begin();
QMap<qint64, ClipWorkflow*>::const_iterator end = m_clips.end();
while ( it != end )
{
if ( it.value()->getClipHelper()->uuid() == uuid )
return it.value()->appendEffect( effect );
++it;
}
return NULL;
}
EffectsEngine::EffectHelper*
TrackWorkflow::addEffect( Effect *effect, qint64 start /*= 0*/, qint64 end /*= -1*/ )
{
......
......@@ -59,13 +59,6 @@ class TrackWorkflow : public QObject
ClipWorkflow* removeClipWorkflow( const QUuid& id );
void addClip( ClipHelper*, qint64 start );
void addClip( ClipWorkflow*, qint64 start );
/**
* \brief Add an effect to a contained ClipWorkflow
*
* \param effect The effect to add.
* \param uuid The ClipHelper's uuid
*/
EffectsEngine::EffectHelper *addEffect( Effect *effect, const QUuid &uuid );
/**
* \brief Add an effect to the TrackWorkflow
*
......
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