From 35d9548da25e8b598f33f3724821a1c1bb3e68e7 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Sun, 22 Jul 2012 21:05:25 -0700 Subject: [PATCH] remove dead code (coverity-709334) --- src/framework/mlt_playlist.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/framework/mlt_playlist.c b/src/framework/mlt_playlist.c index 324f6aad..ee81b20a 100644 --- a/src/framework/mlt_playlist.c +++ b/src/framework/mlt_playlist.c @@ -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 ]; -- 2.39.2