From: Pierre d'Herbemont Date: Sun, 13 Jul 2008 19:05:19 +0000 (+0200) Subject: macosx: Assert on cases that should never happen. X-Git-Tag: 0.9.0-test2~12 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2335fa6b566161fd6e5a3d171191fcf7165345a1;hp=763302ecde9c0edb1170d4b1efac860a484728cc;p=vlc macosx: Assert on cases that should never happen. --- 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]; }