Przeglądaj źródła

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

Pierre d'Herbemont 17 lat temu
rodzic
commit
e3e18eff8d
2 zmienionych plików z 0 dodań i 56 usunięć
  1. 0 6
      Headers/Public/VLCMediaList.h
  2. 0 50
      Sources/VLCMediaList.m

+ 0 - 6
Headers/Public/VLCMediaList.h

@@ -58,10 +58,4 @@ extern NSString * VLCMediaListItemDeleted;
 - (VLCMedia *)mediaAtIndex:(int)index;
 - (int)indexOfMedia:(VLCMedia *)media;
 - (int)count;
-
-#if 0 /* Disabled until this get fixed in libvlc */
-- (NSArray *)sublists; //< A way to see the same media list. Only sub media list.
-- (NSArray *)flatMediaView; //< A way to see the same media list. Only media.
-- (VLCMedia *)providerMedia;  //< If a media was at the origin of this media list, here it is.
-#endif
 @end

+ 0 - 50
Sources/VLCMediaList.m

@@ -222,56 +222,6 @@ static void HandleMediaListWillDeleteItem(const libvlc_event_t *event, void *use
     
     return result;
 }
-
-- (NSArray *)sublists
-{
-    NSMutableArray *ret = [[NSMutableArray alloc] initWithCapacity: 0];
-    int i, count;
-
-    libvlc_exception_t p_e;
-    libvlc_exception_init( &p_e );
-    count = libvlc_media_list_count( p_mlist, &p_e );
-    quit_on_exception( &p_e );
-
-    for(i = 0; i < count; i++)
-    {
-        libvlc_media_descriptor_t *p_md;
-        libvlc_media_list_t *p_submlist;
-        p_md = libvlc_media_list_item_at_index( p_mlist, i, NULL );
-        p_submlist = libvlc_media_descriptor_subitems( p_md, NULL );
-        if (p_submlist)
-        {
-            [ret addObject:[VLCMediaList medialistWithLibVLCMediaList:p_submlist]];
-            libvlc_media_list_release( p_submlist );
-        }
-        libvlc_media_descriptor_release( p_md );
-    }
-    return [ret autorelease];
-}
-
-//- (VLCMediaList *)flatPlaylist
-//{
-//    VLCMediaList * flatPlaylist;
-//    libvlc_exception_t p_e;
-//    libvlc_exception_init( &p_e );
-//    libvlc_media_list_t * p_flat_mlist = libvlc_media_list_flat_media_list( p_mlist, &p_e );
-//    quit_on_exception( &p_e );
-//    flatPlaylist = [VLCMediaList medialistWithLibVLCMediaList: p_flat_mlist];
-//    libvlc_media_list_release( p_flat_mlist );
-//    return flatPlaylist;
-//}
-//
-//- (VLCMedia *)providerMedia
-//{
-//    VLCMedia * ret;
-//    libvlc_exception_t p_e;
-//    libvlc_exception_init( &p_e );
-//    libvlc_media_descriptor_t * p_md = libvlc_media_list_media_descriptor( p_mlist, &p_e );
-//    ret = [VLCMedia mediaWithLibVLCMediaDescriptor: p_md];
-//    libvlc_media_descriptor_release( p_md );
-//    quit_on_exception( &p_e );
-//    return ret;
-//}
 @end
 
 @implementation VLCMediaList (LibVLCBridging)