]> git.sesse.net Git - mlt/commitdiff
remove dead code (coverity-709334)
authorDan Dennedy <dan@dennedy.org>
Mon, 23 Jul 2012 04:05:25 +0000 (21:05 -0700)
committerDan Dennedy <dan@dennedy.org>
Tue, 24 Jul 2012 05:06:32 +0000 (22:06 -0700)
src/framework/mlt_playlist.c

index 324f6aaded096000d7c6db58228bb9f792da3380..ee81b20a7b3ce6108361625af230832926119a10 100644 (file)
@@ -805,12 +805,6 @@ int mlt_playlist_remove( mlt_playlist self, int where )
                // Get the clip info
                mlt_playlist_get_clip_info( self, &where_info, where );
 
-               // Make sure the clip to be removed is valid and correct if necessary
-               if ( where < 0 )
-                       where = 0;
-               if ( where >= self->count )
-                       where = self->count - 1;
-
                // Reorganise the list
                for ( i = where + 1; i < self->count; i ++ )
                        self->list[ i - 1 ] = self->list[ i ];