Commit 0e081263 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

Mac OS X gui: Small code cleanup. Remove NSLogs, avoid code redundancy.

parent 897efe1b
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
if( i_return <= 0 ) if( i_return <= 0 )
i_return = 0; i_return = 0;
NSLog( @"%d children for %s", i_return, p_item->p_input->psz_name );
return i_return; return i_return;
} }
...@@ -198,9 +198,7 @@ NSLog( @"%d children for %s", i_return, p_item->p_input->psz_name ); ...@@ -198,9 +198,7 @@ NSLog( @"%d children for %s", i_return, p_item->p_input->psz_name );
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
o_value = [o_outline_dict objectForKey:[NSString stringWithFormat: @"%p", p_return]]; 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 ) if( o_value == nil )
{ {
o_value = [[NSValue valueWithPointer: p_return] retain]; o_value = [[NSValue valueWithPointer: p_return] retain];
...@@ -231,11 +229,7 @@ NSLog( @"%d children for %s", i_return, p_item->p_input->psz_name ); ...@@ -231,11 +229,7 @@ NSLog( @"%d children for %s", i_return, p_item->p_input->psz_name );
} }
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
NSLog( @"expandable" ); return (i_return > 0);
if( i_return <= 0 )
return NO;
else
return YES;
} }
/* retrieve the string values for the cells */ /* retrieve the string values for the cells */
...@@ -251,7 +245,6 @@ NSLog( @"expandable" ); ...@@ -251,7 +245,6 @@ NSLog( @"expandable" );
{ {
return( @"error"); return( @"error");
} }
//NSLog( @"values for %p", p_item );
if( [[o_tc identifier] isEqualToString:@"1"] ) if( [[o_tc identifier] isEqualToString:@"1"] )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment