[vlmc-devel] commit: Workflow: Removing useless effects setter. ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Sun Aug 29 21:38:11 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Aug 29 20:28:27 2010 +0200| [eedc25b34e9a89fb6ae99c43c22727682668359b] | committer: Hugo Beauzée-Luyssen
Workflow: Removing useless effects setter.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=eedc25b34e9a89fb6ae99c43c22727682668359b
---
src/Workflow/MainWorkflow.cpp | 6 ------
src/Workflow/MainWorkflow.h | 3 ---
src/Workflow/TrackHandler.cpp | 6 ------
src/Workflow/TrackHandler.h | 1 -
src/Workflow/TrackWorkflow.cpp | 15 ---------------
src/Workflow/TrackWorkflow.h | 7 -------
6 files changed, 0 insertions(+), 38 deletions(-)
diff --git a/src/Workflow/MainWorkflow.cpp b/src/Workflow/MainWorkflow.cpp
index 64df2b5..8da2d52 100644
--- a/src/Workflow/MainWorkflow.cpp
+++ b/src/Workflow/MainWorkflow.cpp
@@ -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()
{
diff --git a/src/Workflow/MainWorkflow.h b/src/Workflow/MainWorkflow.h
index 19377c7..cd4252e 100644
--- a/src/Workflow/MainWorkflow.h
+++ b/src/Workflow/MainWorkflow.h
@@ -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.
*
diff --git a/src/Workflow/TrackHandler.cpp b/src/Workflow/TrackHandler.cpp
index ee42867..92e9dd7 100644
--- a/src/Workflow/TrackHandler.cpp
+++ b/src/Workflow/TrackHandler.cpp
@@ -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 )
{
diff --git a/src/Workflow/TrackHandler.h b/src/Workflow/TrackHandler.h
index beb643e..275374a 100644
--- a/src/Workflow/TrackHandler.h
+++ b/src/Workflow/TrackHandler.h
@@ -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
*/
diff --git a/src/Workflow/TrackWorkflow.cpp b/src/Workflow/TrackWorkflow.cpp
index 6a9b407..9dd8ca0 100644
--- a/src/Workflow/TrackWorkflow.cpp
+++ b/src/Workflow/TrackWorkflow.cpp
@@ -96,21 +96,6 @@ TrackWorkflow::addClip( ClipWorkflow* cw, qint64 start )
}
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*/ )
{
EffectInstance *effectInstance = effect->createInstance();
diff --git a/src/Workflow/TrackWorkflow.h b/src/Workflow/TrackWorkflow.h
index d483bbf..6609624 100644
--- a/src/Workflow/TrackWorkflow.h
+++ b/src/Workflow/TrackWorkflow.h
@@ -60,13 +60,6 @@ class TrackWorkflow : public QObject
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
*
* \param effect The effect instance. Can be either mixer or filter.
More information about the Vlmc-devel
mailing list