-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[ios, macos] Mark deprecated methods as unavailable #11205
Conversation
@@ -55,7 +55,7 @@ + (instancetype)sharedManager { | |||
} | |||
|
|||
+ (BOOL)mapboxMetricsEnabledSettingShownInApp { | |||
NSLog(@"mapboxMetricsEnabledSettingShownInApp is no longer necessary; the Mapbox Maps SDK for iOS has changed to always provide a telemetry setting in-app."); | |||
[NSException raise:NSInternalInconsistencyException format:@"Telemetry settings are now always shown in the ℹ️ menu."]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you say more about why we shouldn’t delete this implementation?
platform/ios/src/MGLMapView.h
Outdated
|
||
@deprecated Call the relevant class method of `MGLStyle` for the URL of a | ||
particular default style. | ||
:nodoc: bundledStyleURLs has been removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it’s safe to get rid of any external comments on unavailable()
bits.
platform/ios/src/MGLMapView.h
Outdated
@@ -284,16 +281,16 @@ MGL_EXPORT IB_DESIGNABLE | |||
- (IBAction)showAttribution:(id)sender; | |||
|
|||
/// :nodoc: Support for style classes has been removed. This property always returns an empty array. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These comments are no longer accurate — let’s axe ‘em.
platform/darwin/src/MGLStyle.h
Outdated
@@ -89,7 +89,7 @@ MGL_EXPORT | |||
|
|||
Emerald is a tactile style with subtle textures and dramatic hillshading. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto to removing these obsolete comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let’s add a blurb to both changelogs referring to the removal of these symbols. Something like:
Removed methods, properties, and constants that had been deprecated as of v3.7.x.
return MGLStyleURL_hybrid; | ||
} | ||
|
||
// Emerald is no longer getting new versions as a default style, so the current version is hard-coded here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goodbye Emerald. 😢
1096388 removes Traffic Day and Traffic Night menu items from macosapp. |
I am currently working on getting a couple of tests passing. I'm not sure if I should remove the |
@@ -100,15 +100,6 @@ - (void)testVersionedStyleURLs { | |||
XCTAssertEqualObjects([MGLStyle satelliteStreetsStyleURLWithVersion:99].absoluteString, | |||
@"mapbox://styles/mapbox/satellite-streets-v99"); | |||
#pragma clang diagnostic push |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The push
es and pop
s can be removed, too — they served to limit the scope of the ignored warnings.
/cc @mapbox/qt |
Without the declarations in |
My current solution is to check whether a style's name contains |
Fixes #10735
unavailable
.