[vlc-commits] VLCKit: remove - (id)initWithArray:(NSArray *)array;

Jean-Baptiste Kempf git at videolan.org
Thu May 3 01:16:38 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu May  3 01:14:51 2012 +0200| [5f9c83631f57929ee8492edc2093345aa6840990] | committer: Jean-Baptiste Kempf

VLCKit: remove - (id)initWithArray:(NSArray *)array;

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5f9c83631f57929ee8492edc2093345aa6840990
---

 .../macosx/framework/Headers/Public/VLCMediaList.h |    6 ------
 projects/macosx/framework/Sources/VLCMediaList.m   |   11 -----------
 2 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/projects/macosx/framework/Headers/Public/VLCMediaList.h b/projects/macosx/framework/Headers/Public/VLCMediaList.h
index 3d47692..64e6784 100644
--- a/projects/macosx/framework/Headers/Public/VLCMediaList.h
+++ b/projects/macosx/framework/Headers/Public/VLCMediaList.h
@@ -58,12 +58,6 @@ extern NSString * VLCMediaListItemDeleted;
     NSMutableArray * cachedMedia;                   //< Private copy of media objects.
 }
 
-/**
- * Init a MediaList with the media contained in array.
- * \array an array of VLCMedia.
- */
-- (id)initWithArray:(NSArray *)array;
-
 /* Operations */
 /**
  * TODO: Documentation - [VLCMediaList lock]
diff --git a/projects/macosx/framework/Sources/VLCMediaList.m b/projects/macosx/framework/Sources/VLCMediaList.m
index 120b172..78a57f8 100644
--- a/projects/macosx/framework/Sources/VLCMediaList.m
+++ b/projects/macosx/framework/Sources/VLCMediaList.m
@@ -86,17 +86,6 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
     return self;
 }
 
-- (id)initWithArray:(NSArray *)array
-{
-    self = [self init];
-    if (!self)
-        return nil;
-
-    for (VLCMedia *media in array)
-        [self addMedia:media];
-    return self;
-}
-
 - (void)dealloc
 {
     libvlc_event_manager_t *em = libvlc_media_list_event_manager(p_mlist);



More information about the vlc-commits mailing list