[vlmc-devel] commit: Remove an old and useless code block. (Ludovic Fauvet )

git at videolan.org git at videolan.org
Tue Mar 30 03:15:42 CEST 2010


vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Tue Mar 30 03:19:02 2010 +0200| [2c69f659b8dd89442182f8412fcca6f7221bea25] | committer: Ludovic Fauvet 

Remove an old and useless code block.

This one fixes #33 too.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=2c69f659b8dd89442182f8412fcca6f7221bea25
---

 src/Gui/timeline/TracksView.cpp |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index a241105..e607731 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -222,17 +222,6 @@ TracksView::addMediaItem( Clip *clip, unsigned int track, MainWorkflow::TrackTyp
 {
     Q_ASSERT( clip );
 
-    // Is the clip already existing in the timeline ?
-    QList<QGraphicsItem*> trackItems = getTrack( trackType, track )->childItems();
-    for ( int i = 0; i < trackItems.size(); ++i )
-    {
-        AbstractGraphicsMediaItem *item =
-                dynamic_cast<AbstractGraphicsMediaItem*>( trackItems.at( i ) );
-        if ( !item || item->uuid() != clip->uuid() ) continue;
-        // Item already exists in the timeline, exit now.
-        return;
-    }
-
     // If there is not enough tracks to insert
     // the clip do it now.
     if ( trackType == MainWorkflow::VideoTrack )



More information about the Vlmc-devel mailing list