ソースを参照

Remove API deprecated for v3

This removes all the APIs deprecated in the v3 release and thereby previously announced to no longer be present in v4.
Felix Paul Kühne 5 年 前
コミット
f4eec5bf61

+ 0 - 5
Headers/Public/VLCAudio.h

@@ -51,11 +51,6 @@ extern NSString *const VLCMediaPlayerVolumeChanged;
 @property (readwrite) BOOL passthrough;
 
 /**
- * Mute the current audio output.
- * \deprecated This selector will be removed in the next release */
-- (void)setMute:(BOOL)value __attribute__((deprecated));
-
-/**
  * lower the current audio output volume */
 - (void)volumeDown;
 

+ 0 - 26
Headers/Public/VLCMedia.h

@@ -256,12 +256,6 @@ typedef NS_ENUM(NSUInteger, VLCMediaType) {
 - (VLCTime *)lengthWaitUntilDate:(NSDate *)aDate;
 
 /**
- * Determines if the media has already been preparsed.
- * \deprecated use parseStatus instead
- */
-@property (nonatomic, readonly) BOOL isParsed __attribute__((deprecated));
-
-/**
  * list of possible parsed states returnable by parsedStatus
  */
 typedef NS_ENUM(unsigned, VLCMediaParsedStatus)
@@ -490,26 +484,6 @@ extern NSString *const VLCMediaTracksInformationTypeUnknown;
 
 @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *tracksInformation;
 
-/**
- * Start asynchronously to parse the media.
- * This will attempt to fetch the meta data and tracks information.
- *
- * This is automatically done when an accessor requiring parsing
- * is called.
- *
- * \see -[VLCMediaDelegate mediaDidFinishParsing:]
- * \deprecated Use parseWithOptions: instead
- */
-- (void)parse __attribute__((deprecated));
-
-/**
- * Trigger a synchronous parsing of the media
- * the selector won't return until parsing finished
- *
- * \deprecated Use parseWithOptions: instead
- */
-- (void)synchronousParse __attribute__((deprecated));
-
 enum {
     VLCMediaParseLocal          = 0x00,     ///< Parse media if it's a local file
     VLCMediaParseNetwork        = 0x01,     ///< Parse media even if it's a network file

+ 0 - 7
Headers/Public/VLCMediaDiscoverer.h

@@ -58,13 +58,6 @@ extern NSString *const VLCMediaDiscovererCategory;
 @property (nonatomic, readonly) VLCLibrary *libraryInstance;
 
 /**
- * The full list of available media discoverers
- * \return returns an empty array for binary compatibility, will be removed in subsequent releases
- * \deprecated use availableMediaDiscovererForCategoryType instead
- */
-+ (NSArray *)availableMediaDiscoverer __attribute__((deprecated));
-
-/**
  * \param categoryType VLCMediaDiscovererCategory you are looking for
  * \return an array of dictionaries describing the available discoverers for the requested type
  */

+ 0 - 6
Headers/Public/VLCMediaListPlayer.h

@@ -129,12 +129,6 @@ typedef NS_ENUM(NSInteger, VLCRepeatMode) {
 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL previous;
 
 /**
- * play an item at at a given index in the media list attached to the player
- * \deprecated This method is not thread safe. Use playItemAtNumber: instead
- */
-- (BOOL)playItemAtIndex:(int)index  __attribute__((deprecated));
-
-/**
  * play an item at a given index in the media list attached to the player
  */
 - (void)playItemAtNumber:(NSNumber *)index;

+ 0 - 14
Headers/Public/VLCMediaPlayer.h

@@ -346,13 +346,6 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
  */
 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL hasVideoOut;
 
-/**
- * Frames per second
- * \deprecated provided for API compatibility only, to retrieve a media's FPS, use VLCMediaTracksInformationFrameRate.
- * \returns 0
- */
-@property (NS_NONATOMIC_IOSONLY, readonly) float framesPerSecond __attribute__((deprecated));
-
 #pragma mark -
 #pragma mark time
 
@@ -432,13 +425,6 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
 @property (NS_NONATOMIC_IOSONLY, readonly) int numberOfSubtitlesTracks;
 
 /**
- * Load and set a specific video subtitle, from a file.
- *
- * \deprecated use addPlaybackSlave:type:enforce: instead
- */
-- (BOOL)openVideoSubTitlesFromFile:(NSString *)path __attribute__((deprecated));
-
-/**
  * VLCMediaPlaybackNavigationAction describes actions which can be performed to navigate an interactive title
  */
 typedef NS_ENUM(unsigned, VLCMediaPlaybackSlaveType)

+ 0 - 6
Headers/Public/VLCTime.h

@@ -66,12 +66,6 @@
  * \return the NSNumber object
  */
 @property (nonatomic, readonly) NSNumber * value;    ///< Holds, in milliseconds, the VLCTime value
-/**
- * the current time value as NSNumber
- * \return the NSNumber object
- * \deprecated use value instead
- */
-@property (readonly) NSNumber * numberValue __attribute__((deprecated));	    // here for backwards compatibility
 
 /**
  * the current time value as string value localized for the current environment

+ 0 - 5
Sources/VLCAudio.m

@@ -76,11 +76,6 @@ NSString *const VLCMediaPlayerVolumeChanged = @"VLCMediaPlayerVolumeChanged";
     libvlc_audio_set_mute([self instance], value);
 }
 
-- (void)setMute:(BOOL)value
-{
-    [self setMuted:value];
-}
-
 - (BOOL)isMuted
 {
     return libvlc_audio_get_mute([self instance]);

+ 0 - 18
Sources/VLCMedia.m

@@ -411,12 +411,6 @@ static void HandleMediaParsedChanged(const libvlc_event_t * event, void * self)
     return _length;
 }
 
-- (BOOL)isParsed
-{
-   VLCMediaParsedStatus status = [self parsedStatus];
-   return (status == VLCMediaParsedStatusFailed || status == VLCMediaParsedStatusDone) ? YES:NO;
-}
-
 - (VLCMediaParsedStatus)parsedStatus
 {
     if (!p_md)
@@ -425,18 +419,6 @@ static void HandleMediaParsedChanged(const libvlc_event_t * event, void * self)
     return (VLCMediaParsedStatus)status;
 }
 
-- (void)parse
-{
-    if (p_md)
-        libvlc_media_parse_async(p_md);
-}
-
-- (void)synchronousParse
-{
-    if (p_md)
-        libvlc_media_parse(p_md);
-}
-
 - (int)parseWithOptions:(VLCMediaParsingOptions)options timeout:(int)timeoutValue
 {
     if (!p_md)

+ 0 - 5
Sources/VLCMediaDiscoverer.m

@@ -50,11 +50,6 @@ NSString *const VLCMediaDiscovererCategory = @"VLCMediaDiscovererCategory";
 @implementation VLCMediaDiscoverer
 @synthesize libraryInstance = _privateLibrary;
 
-+ (NSArray *)availableMediaDiscoverer
-{
-    return @[];
-}
-
 + (NSArray *)availableMediaDiscovererForCategoryType:(VLCMediaDiscovererCategoryType)categoryType
 {
     libvlc_media_discoverer_description_t **discoverers;

+ 0 - 5
Sources/VLCMediaListPlayer.m

@@ -239,11 +239,6 @@ static void HandleMediaListPlayerStopped(const libvlc_event_t * event, void * se
     return libvlc_media_list_player_previous(instance) == 0 ? YES : NO;
 }
 
-- (BOOL)playItemAtIndex:(int)index
-{
-    return libvlc_media_list_player_play_item_at_index(instance, index) == 0 ? YES : NO;
-}
-
 - (void)playItemAtNumber:(NSNumber *)index
 {
     dispatch_async(_libVLCBackgroundQueue, ^{

+ 0 - 10
Sources/VLCMediaPlayer.m

@@ -494,11 +494,6 @@ static void HandleMediaPlayerRecord(const libvlc_event_t * event, void * self)
     return libvlc_video_get_spu_count(_playerInstance);
 }
 
-- (BOOL)openVideoSubTitlesFromFile:(NSString *)path
-{
-    return [self addPlaybackSlave:[NSURL fileURLWithPath:path] type:VLCMediaPlaybackSlaveTypeSubtitle enforce:YES];
-}
-
 - (int)addPlaybackSlave:(NSURL *)slaveURL type:(VLCMediaPlaybackSlaveType)slaveType enforce:(BOOL)enforceSelection
 {
     if (!slaveURL)
@@ -686,11 +681,6 @@ static void HandleMediaPlayerRecord(const libvlc_event_t * event, void * self)
     return libvlc_media_player_has_vout(_playerInstance);
 }
 
-- (float)framesPerSecond
-{
-    return .0;
-}
-
 - (void)setTime:(VLCTime *)value
 {
     // Time is managed in seconds, while duration is managed in microseconds

+ 0 - 5
Sources/VLCTime.m

@@ -71,11 +71,6 @@
     return self.stringValue;
 }
 
-- (NSNumber *)numberValue
-{
-    return _value;
-}
-
 - (NSString *)stringValue
 {
     if (_value) {