summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLForegroundStyleLayer.mm
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-04-11 16:28:19 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-04-13 10:33:18 -0700
commite5c6d2838db146bdde68ba365712deb32c61ad67 (patch)
treedd67748d5907eb480d4c6f86235f13ea636ca14f /platform/darwin/src/MGLForegroundStyleLayer.mm
parent7b041b123cb067d247a727bb3a4563bb2fc575eb (diff)
downloadqtlocation-mapboxgl-e5c6d2838db146bdde68ba365712deb32c61ad67.tar.gz
[darwin] Make -[MGLForegroundStyleLayer sourceIdentifier] abstract
It's already overridden by concrete subclasses, and by making it abstract we enable the removal of the private MGLForegroundStyleLayer category.
Diffstat (limited to 'platform/darwin/src/MGLForegroundStyleLayer.mm')
-rw-r--r--platform/darwin/src/MGLForegroundStyleLayer.mm19
1 files changed, 4 insertions, 15 deletions
diff --git a/platform/darwin/src/MGLForegroundStyleLayer.mm b/platform/darwin/src/MGLForegroundStyleLayer.mm
index 6926dfac1f..6888f89b92 100644
--- a/platform/darwin/src/MGLForegroundStyleLayer.mm
+++ b/platform/darwin/src/MGLForegroundStyleLayer.mm
@@ -1,22 +1,11 @@
#import "MGLForegroundStyleLayer.h"
-#import "MGLForegroundStyleLayer_Private.h"
-#import "MGLStyleLayer_Private.h"
-#import "MGLSource.h"
@implementation MGLForegroundStyleLayer
-- (instancetype)initWithRawLayer:(mbgl::style::Layer *)rawLayer source:(MGLSource *)source {
- if (self = [super initWithRawLayer:rawLayer]) {
- _sourceIdentifier = source.identifier;
- }
- return self;
-}
-
-- (instancetype)initWithPendingLayer:(std::unique_ptr<mbgl::style::Layer>)pendingLayer source:(MGLSource *)source {
- if (self = [super initWithPendingLayer:std::move(pendingLayer)]) {
- _sourceIdentifier = source.identifier;
- }
- return self;
+- (NSString *)sourceIdentifier {
+ [NSException raise:@"MGLAbstractClassException"
+ format:@"MGLForegroundStyleLayer is an abstract class"];
+ return nil;
}
- (NSString *)description {