Skip to content

Commit

Permalink
chore: remove obsolete __MAPBOX_STYLESHEET__ check
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian committed Dec 21, 2024
1 parent 7b112b0 commit 5dc22a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 44 deletions.
40 changes: 0 additions & 40 deletions ios/MLRN/MLRNStyle.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ - (void)fillLayer:(MLNFillStyleLayer *)layer withReactStyle:(NSDictionary *)reac

NSArray<NSString*> *styleProps = [reactStyle allKeys];
for (NSString *prop in styleProps) {
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
continue;
}

MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]];

if ([prop isEqualToString:@"fillSortKey"]) {
Expand Down Expand Up @@ -88,10 +84,6 @@ - (void)lineLayer:(MLNLineStyleLayer *)layer withReactStyle:(NSDictionary *)reac

NSArray<NSString*> *styleProps = [reactStyle allKeys];
for (NSString *prop in styleProps) {
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
continue;
}

MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]];

if ([prop isEqualToString:@"lineCap"]) {
Expand Down Expand Up @@ -176,10 +168,6 @@ - (void)symbolLayer:(MLNSymbolStyleLayer *)layer withReactStyle:(NSDictionary *)

NSArray<NSString*> *styleProps = [reactStyle allKeys];
for (NSString *prop in styleProps) {
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
continue;
}

MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]];

if ([prop isEqualToString:@"symbolPlacement"]) {
Expand Down Expand Up @@ -348,10 +336,6 @@ - (void)circleLayer:(MLNCircleStyleLayer *)layer withReactStyle:(NSDictionary *)

NSArray<NSString*> *styleProps = [reactStyle allKeys];
for (NSString *prop in styleProps) {
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
continue;
}

MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]];

if ([prop isEqualToString:@"circleSortKey"]) {
Expand Down Expand Up @@ -411,10 +395,6 @@ - (void)heatmapLayer:(MLNHeatmapStyleLayer *)layer withReactStyle:(NSDictionary

NSArray<NSString*> *styleProps = [reactStyle allKeys];
for (NSString *prop in styleProps) {
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
continue;
}

MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]];

if ([prop isEqualToString:@"visibility"]) {
Expand Down Expand Up @@ -450,10 +430,6 @@ - (void)fillExtrusionLayer:(MLNFillExtrusionStyleLayer *)layer withReactStyle:(N

NSArray<NSString*> *styleProps = [reactStyle allKeys];
for (NSString *prop in styleProps) {
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
continue;
}

MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]];

if ([prop isEqualToString:@"visibility"]) {
Expand Down Expand Up @@ -516,10 +492,6 @@ - (void)rasterLayer:(MLNRasterStyleLayer *)layer withReactStyle:(NSDictionary *)

NSArray<NSString*> *styleProps = [reactStyle allKeys];
for (NSString *prop in styleProps) {
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
continue;
}

MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]];

if ([prop isEqualToString:@"visibility"]) {
Expand Down Expand Up @@ -567,10 +539,6 @@ - (void)hillshadeLayer:(MLNHillshadeStyleLayer *)layer withReactStyle:(NSDiction

NSArray<NSString*> *styleProps = [reactStyle allKeys];
for (NSString *prop in styleProps) {
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
continue;
}

MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]];

if ([prop isEqualToString:@"visibility"]) {
Expand Down Expand Up @@ -610,10 +578,6 @@ - (void)backgroundLayer:(MLNBackgroundStyleLayer *)layer withReactStyle:(NSDicti

NSArray<NSString*> *styleProps = [reactStyle allKeys];
for (NSString *prop in styleProps) {
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
continue;
}

MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]];

if ([prop isEqualToString:@"visibility"]) {
Expand Down Expand Up @@ -660,10 +624,6 @@ - (void)lightLayer:(MLNLight *)layer withReactStyle:(NSDictionary *)reactStyle i

NSArray<NSString*> *styleProps = [reactStyle allKeys];
for (NSString *prop in styleProps) {
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
continue;
}

MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]];

if ([prop isEqualToString:@"anchor"]) {
Expand Down
4 changes: 0 additions & 4 deletions scripts/templates/MLRNStyle.m.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
NSArray<NSString*> *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++) { -%>
Expand Down

0 comments on commit 5dc22a5

Please sign in to comment.