[vlmc-devel] Remove unneeded slots

Yikai Lu git at videolan.org
Mon Jul 4 15:34:15 CEST 2016


vlmc | branch: medialibrary | Yikai Lu <luyikei.qmltu at gmail.com> | Thu Jun 23 18:30:29 2016 +0900| [fb2a06440293bd5c16f8ef192f34009f3e0c6a27] | committer: Yikai Lu

Remove unneeded slots

> https://code.videolan.org/videolan/vlmc/commit/fb2a06440293bd5c16f8ef192f34009f3e0c6a27
---

 src/Workflow/TrackWorkflow.cpp | 41 -----------------------------------------
 src/Workflow/TrackWorkflow.h   |  9 +--------
 2 files changed, 1 insertion(+), 49 deletions(-)

diff --git a/src/Workflow/TrackWorkflow.cpp b/src/Workflow/TrackWorkflow.cpp
index a37e7ef..4a18d02 100644
--- a/src/Workflow/TrackWorkflow.cpp
+++ b/src/Workflow/TrackWorkflow.cpp
@@ -59,13 +59,6 @@ TrackWorkflow::TrackWorkflow( quint32 trackId, Backend::ITractor* tractor ) :
     m_tractor->setTrack( *m_audioTrack, 1 );
 
     tractor->setTrack( *m_tractor, trackId );
-
-    connect( this, SIGNAL( effectAdded( EffectHelper*, qint64 ) ),
-             this, SLOT( __effectAdded( EffectHelper*, qint64) ) );
-    connect( this, SIGNAL( effectMoved( EffectHelper*, qint64 ) ),
-             this, SLOT( __effectMoved( EffectHelper*, qint64 ) ) );
-    connect( this, SIGNAL( effectRemoved( QUuid ) ),
-             this, SLOT( __effectRemoved(QUuid ) ) );
 }
 
 TrackWorkflow::~TrackWorkflow()
@@ -320,40 +313,6 @@ TrackWorkflow::trackId() const
     return m_trackId;
 }
 
-void
-TrackWorkflow::__effectAdded( EffectHelper* helper, qint64 pos )
-{
-    /* TODO
-    if ( helper->target()->effectType() == ClipEffectUser )
-    {
-        ClipWorkflow    *cw = qobject_cast<ClipWorkflow*>( helper->target() );
-        Q_ASSERT( cw != nullptr );
-        pos += getClipPosition( cw->clip()->uuid() );
-    }
-    emit effectAdded( this, helper, pos );
-    */
-}
-
-void
-TrackWorkflow::__effectRemoved( const QUuid& uuid )
-{
-    emit effectRemoved( this, uuid );
-}
-
-void
-TrackWorkflow::__effectMoved( EffectHelper* helper, qint64 pos )
-{
-    /* TODO
-    if ( helper->target()->effectType() == ClipEffectUser )
-    {
-        ClipWorkflow    *cw = qobject_cast<ClipWorkflow*>( helper->target() );
-        Q_ASSERT( cw != nullptr );
-        pos += getClipPosition( cw->clip()->uuid() );
-    }
-    emit effectMoved( this, helper->uuid(), pos );
-    */
-}
-
 Backend::IProducer*
 TrackWorkflow::producer()
 {
diff --git a/src/Workflow/TrackWorkflow.h b/src/Workflow/TrackWorkflow.h
index 02a5a9f..e3e6746 100644
--- a/src/Workflow/TrackWorkflow.h
+++ b/src/Workflow/TrackWorkflow.h
@@ -96,9 +96,6 @@ class   TrackWorkflow : public QObject
         const quint32                           m_trackId;
 
     private slots:
-        void                __effectAdded( EffectHelper*, qint64 );
-        void                __effectRemoved( const QUuid& );
-        void                __effectMoved( EffectHelper*, qint64 );
         void                clipDestroyed( const QUuid &uuid );
 
     signals:
@@ -108,15 +105,11 @@ class   TrackWorkflow : public QObject
         void                clipMoved( TrackWorkflow*, const QUuid&, qint64 );
 
         //these signals are here to ease connection with tracksview, as it only
-        //monitors tracks, and not generics EffectUsers
+        //monitors tracks
         void                effectAdded( TrackWorkflow*, Workflow::Helper*, qint64 );
         void                effectRemoved( TrackWorkflow*, const QUuid& );
         void                effectMoved( TrackWorkflow*, const QUuid&, qint64 );
 
-        void                effectAdded( EffectHelper *helper, qint64 pos );
-        void                effectMoved( EffectHelper *helper, qint64 newPos );
-        void                effectRemoved( const QUuid& );
-
 };
 
 #endif // TRACKWORKFLOW_H



More information about the Vlmc-devel mailing list