From 5dc22a58d7f445ebfc45676ed7d98e3ac9092c26 Mon Sep 17 00:00:00 2001 From: Kilian Finger Date: Sat, 21 Dec 2024 23:17:41 +0100 Subject: [PATCH] chore: remove obsolete __MAPBOX_STYLESHEET__ check --- ios/MLRN/MLRNStyle.m | 40 ------------------------------- scripts/templates/MLRNStyle.m.ejs | 4 ---- 2 files changed, 44 deletions(-) diff --git a/ios/MLRN/MLRNStyle.m b/ios/MLRN/MLRNStyle.m index a982d12ea..5861c178b 100644 --- a/ios/MLRN/MLRNStyle.m +++ b/ios/MLRN/MLRNStyle.m @@ -24,10 +24,6 @@ - (void)fillLayer:(MLNFillStyleLayer *)layer withReactStyle:(NSDictionary *)reac NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"fillSortKey"]) { @@ -88,10 +84,6 @@ - (void)lineLayer:(MLNLineStyleLayer *)layer withReactStyle:(NSDictionary *)reac NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"lineCap"]) { @@ -176,10 +168,6 @@ - (void)symbolLayer:(MLNSymbolStyleLayer *)layer withReactStyle:(NSDictionary *) NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"symbolPlacement"]) { @@ -348,10 +336,6 @@ - (void)circleLayer:(MLNCircleStyleLayer *)layer withReactStyle:(NSDictionary *) NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"circleSortKey"]) { @@ -411,10 +395,6 @@ - (void)heatmapLayer:(MLNHeatmapStyleLayer *)layer withReactStyle:(NSDictionary NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"visibility"]) { @@ -450,10 +430,6 @@ - (void)fillExtrusionLayer:(MLNFillExtrusionStyleLayer *)layer withReactStyle:(N NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"visibility"]) { @@ -516,10 +492,6 @@ - (void)rasterLayer:(MLNRasterStyleLayer *)layer withReactStyle:(NSDictionary *) NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"visibility"]) { @@ -567,10 +539,6 @@ - (void)hillshadeLayer:(MLNHillshadeStyleLayer *)layer withReactStyle:(NSDiction NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"visibility"]) { @@ -610,10 +578,6 @@ - (void)backgroundLayer:(MLNBackgroundStyleLayer *)layer withReactStyle:(NSDicti NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"visibility"]) { @@ -660,10 +624,6 @@ - (void)lightLayer:(MLNLight *)layer withReactStyle:(NSDictionary *)reactStyle i NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"anchor"]) { diff --git a/scripts/templates/MLRNStyle.m.ejs b/scripts/templates/MLRNStyle.m.ejs index c55f7ae7f..9e1124682 100644 --- a/scripts/templates/MLRNStyle.m.ejs +++ b/scripts/templates/MLRNStyle.m.ejs @@ -28,10 +28,6 @@ NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; <% for (let i = 0; i < layer.properties.length; i++) { -%>