From 0bb46eaf0cac468ccbb0d42f7855640916d862c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Thu, 6 Oct 2016 16:01:16 -0700 Subject: [PATCH] [ios, macos] Mark incomplete initializers unavailable --- platform/darwin/src/MGLForegroundStyleLayer.h | 3 +++ platform/darwin/src/MGLStyleLayer.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/platform/darwin/src/MGLForegroundStyleLayer.h b/platform/darwin/src/MGLForegroundStyleLayer.h index cb9887681..642dde499 100644 --- a/platform/darwin/src/MGLForegroundStyleLayer.h +++ b/platform/darwin/src/MGLForegroundStyleLayer.h @@ -18,6 +18,9 @@ NS_ASSUME_NONNULL_BEGIN #pragma mark Initializing a Style Layer +- (instancetype)init __attribute__((unavailable("Use -initWithIdentifier:source: instead."))); +- (instancetype)initWithIdentifier:(NSString *)identifier __attribute__((unavailable("Use -initWithIdentifier:source: instead."))); + /** Returns a foreground style layer initialized with an identifier and source. diff --git a/platform/darwin/src/MGLStyleLayer.h b/platform/darwin/src/MGLStyleLayer.h index cfdc03962..4032be929 100644 --- a/platform/darwin/src/MGLStyleLayer.h +++ b/platform/darwin/src/MGLStyleLayer.h @@ -22,6 +22,8 @@ NS_ASSUME_NONNULL_BEGIN #pragma mark Initializing a Style Layer +- (instancetype)init __attribute__((unavailable("Use -initWithIdentifier: instead."))); + /** Returns a style layer object initialized with the given identifier.