From 0e081263f3e8978f70f638925caf0f3d3498b124 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Wed, 7 Mar 2007 21:02:18 +0000 Subject: [PATCH] Mac OS X gui: Small code cleanup. Remove NSLogs, avoid code redundancy. --- modules/gui/macosx/playlist.m | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m index f9176885b0..144f2682a4 100644 --- a/modules/gui/macosx/playlist.m +++ b/modules/gui/macosx/playlist.m @@ -172,7 +172,7 @@ if( i_return <= 0 ) i_return = 0; -NSLog( @"%d children for %s", i_return, p_item->p_input->psz_name ); + return i_return; } @@ -198,9 +198,7 @@ NSLog( @"%d children for %s", i_return, p_item->p_input->psz_name ); vlc_object_release( p_playlist ); o_value = [o_outline_dict objectForKey:[NSString stringWithFormat: @"%p", p_return]]; - #if 0 - NSLog( @"%s", p_return->p_input->psz_name); - #endif + if( o_value == nil ) { o_value = [[NSValue valueWithPointer: p_return] retain]; @@ -231,11 +229,7 @@ NSLog( @"%d children for %s", i_return, p_item->p_input->psz_name ); } vlc_object_release( p_playlist ); -NSLog( @"expandable" ); - if( i_return <= 0 ) - return NO; - else - return YES; + return (i_return > 0); } /* retrieve the string values for the cells */ @@ -251,7 +245,6 @@ NSLog( @"expandable" ); { return( @"error"); } -//NSLog( @"values for %p", p_item ); if( [[o_tc identifier] isEqualToString:@"1"] ) { -- 2.39.2