From 0487b3d2df4205fce3f320173165802ddc515058 Mon Sep 17 00:00:00 2001 From: Fabian Guerra Date: Wed, 18 Jan 2017 14:01:06 -0500 Subject: [PATCH] [ios, macos] style class methods in MGLStyle marked as deprecated --- platform/darwin/src/MGLStyle.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/darwin/src/MGLStyle.h b/platform/darwin/src/MGLStyle.h index fcb464a3036..4e1336c71ac 100644 --- a/platform/darwin/src/MGLStyle.h +++ b/platform/darwin/src/MGLStyle.h @@ -361,7 +361,7 @@ static const NSInteger MGLStyleDefaultVersion = 9; /** Currently active style classes, represented as an array of string identifiers. */ -@property (nonatomic) NS_ARRAY_OF(NSString *) *styleClasses; +@property (nonatomic) NS_ARRAY_OF(NSString *) *styleClasses __attribute__((deprecated("This property will be removed."))); /** Returns a Boolean value indicating whether the style class with the given @@ -370,14 +370,14 @@ static const NSInteger MGLStyleDefaultVersion = 9; @param styleClass The style class to query for. @return Whether the style class is currently active. */ -- (BOOL)hasStyleClass:(NSString *)styleClass; +- (BOOL)hasStyleClass:(NSString *)styleClass __attribute__((deprecated("This method will be removed in a future release. Runtime styling is :sunglasses:"))); /** Activates the style class with the given identifier. @param styleClass The style class to activate. */ -- (void)addStyleClass:(NSString *)styleClass; +- (void)addStyleClass:(NSString *)styleClass __attribute__((deprecated("This method will be removed in a future release. Runtime styling is :sunglasses:"))); /** Deactivates the style class with the given identifier. @@ -392,7 +392,7 @@ static const NSInteger MGLStyleDefaultVersion = 9; @param styleClass The style class to deactivate. */ -- (void)removeStyleClass:(NSString *)styleClass; +- (void)removeStyleClass:(NSString *)styleClass __attribute__((deprecated("This method will be removed in a future release. Runtime styling is :sunglasses:"))); #pragma mark Managing a Style’s Images