[vlmc-devel] main.qml: Remove moveClipTo

Yikai Lu git at videolan.org
Wed Jul 5 18:56:07 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Thu Jul  6 00:40:13 2017 +0900| [0770107120f1df92d797f980d3a51cf3535ad8a9] | committer: Yikai Lu

main.qml: Remove moveClipTo

Because it is only used once and even there it should be replaced by only one simple line

> https://code.videolan.org/videolan/vlmc/commit/0770107120f1df92d797f980d3a51cf3535ad8a9
---

 src/Gui/timeline/main.qml | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/src/Gui/timeline/main.qml b/src/Gui/timeline/main.qml
index 80e9528f..fcb0c497 100644
--- a/src/Gui/timeline/main.qml
+++ b/src/Gui/timeline/main.qml
@@ -173,15 +173,6 @@ Rectangle {
         return null;
     }
 
-    function moveClipTo( uuid, trackId, position )
-    {
-        var clip = findClipItem( uuid );
-        if ( !clip )
-            return;
-        clip.position = position;
-        workflow.moveClip( uuid, trackId, position );
-    }
-
     function adjustTracks( trackType ) {
         var tracks = trackContainer( trackType )["tracks"];
 
@@ -337,7 +328,7 @@ Rectangle {
         for ( var i = 0; i < selectedClips.length; ++i )
             toMove.push( [selectedClips[i].uuid, selectedClips[i].newTrackId, selectedClips[i].position] );
         for ( i = 0; i < toMove.length; ++i )
-            moveClipTo( toMove[i][0], toMove[i][1], toMove[i][2] );
+            workflow.moveClip( toMove[i][0], toMove[i][1], toMove[i][2] );
 
         adjustTracks( "Audio" );
         adjustTracks( "Video" );



More information about the Vlmc-devel mailing list