]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/playlist.m
macosx: Assert on cases that should never happen.
[vlc] / modules / gui / macosx / playlist.m
index 4e13ad6e763c95c48d71d5c648ed9874178fb5a9..c81aaff39b6a5474740924b8416e505b8469e0de 100644 (file)
         {
             [self appendArray: o_array atPos: index enqueue: YES];
         }
-        /* This should never occur */
-        else if( p_node->i_children == -1 )
-        {
-            vlc_object_release( p_playlist );
-            return NO;
-        }
         else
         {
+            assert( p_node->i_children != -1 );
             [self appendNodeArray: o_array inNode: p_node
                 atPos: index enqueue: YES];
         }