From 2335fa6b566161fd6e5a3d171191fcf7165345a1 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Sun, 13 Jul 2008 21:05:19 +0200 Subject: [PATCH 1/1] macosx: Assert on cases that should never happen. --- modules/gui/macosx/playlist.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m index 4e13ad6e76..c81aaff39b 100644 --- a/modules/gui/macosx/playlist.m +++ b/modules/gui/macosx/playlist.m @@ -1617,14 +1617,9 @@ { [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]; } -- 2.39.2