Changeset 6d0efe5f852c59415e883bea64d58d5f2bb4a86a

Show
Ignore:
Timestamp:
20/11/07 17:30:36 (1 year ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1195576236 +0000
git-parent:

[a381352a841abc182bb3acdbbe3e07ca730fb5d0]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1195576236 +0000
Message:

MacOSX/Framework/VLCMediaList.m: Remove dead code.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • extras/MacOSX/Framework/Headers/Public/VLCMediaList.h

    r3c5a53b r6d0efe5  
    5959- (int)indexOfMedia:(VLCMedia *)media; 
    6060- (int)count; 
    61  
    62 #if 0 /* Disabled until this get fixed in libvlc */ 
    63 - (NSArray *)sublists; //< A way to see the same media list. Only sub media list. 
    64 - (NSArray *)flatMediaView; //< A way to see the same media list. Only media. 
    65 - (VLCMedia *)providerMedia;  //< If a media was at the origin of this media list, here it is. 
    66 #endif 
    6761@end 
  • extras/MacOSX/Framework/Sources/VLCMediaList.m

    ra381352 r6d0efe5  
    223223    return result; 
    224224} 
    225  
    226 - (NSArray *)sublists 
    227 { 
    228     NSMutableArray *ret = [[NSMutableArray alloc] initWithCapacity: 0]; 
    229     int i, count; 
    230  
    231     libvlc_exception_t p_e; 
    232     libvlc_exception_init( &p_e ); 
    233     count = libvlc_media_list_count( p_mlist, &p_e ); 
    234     quit_on_exception( &p_e ); 
    235  
    236     for(i = 0; i < count; i++) 
    237     { 
    238         libvlc_media_descriptor_t *p_md; 
    239         libvlc_media_list_t *p_submlist; 
    240         p_md = libvlc_media_list_item_at_index( p_mlist, i, NULL ); 
    241         p_submlist = libvlc_media_descriptor_subitems( p_md, NULL ); 
    242         if (p_submlist) 
    243         { 
    244             [ret addObject:[VLCMediaList medialistWithLibVLCMediaList:p_submlist]]; 
    245             libvlc_media_list_release( p_submlist ); 
    246         } 
    247         libvlc_media_descriptor_release( p_md ); 
    248     } 
    249     return [ret autorelease]; 
    250 } 
    251  
    252 //- (VLCMediaList *)flatPlaylist 
    253 //{ 
    254 //    VLCMediaList * flatPlaylist; 
    255 //    libvlc_exception_t p_e; 
    256 //    libvlc_exception_init( &p_e ); 
    257 //    libvlc_media_list_t * p_flat_mlist = libvlc_media_list_flat_media_list( p_mlist, &p_e ); 
    258 //    quit_on_exception( &p_e ); 
    259 //    flatPlaylist = [VLCMediaList medialistWithLibVLCMediaList: p_flat_mlist]; 
    260 //    libvlc_media_list_release( p_flat_mlist ); 
    261 //    return flatPlaylist; 
    262 //} 
    263 // 
    264 //- (VLCMedia *)providerMedia 
    265 //{ 
    266 //    VLCMedia * ret; 
    267 //    libvlc_exception_t p_e; 
    268 //    libvlc_exception_init( &p_e ); 
    269 //    libvlc_media_descriptor_t * p_md = libvlc_media_list_media_descriptor( p_mlist, &p_e ); 
    270 //    ret = [VLCMedia mediaWithLibVLCMediaDescriptor: p_md]; 
    271 //    libvlc_media_descriptor_release( p_md ); 
    272 //    quit_on_exception( &p_e ); 
    273 //    return ret; 
    274 //} 
    275225@end 
    276226