From 6335d04ca9630409705cc6eed888ac5e5fa8b0d9 Mon Sep 17 00:00:00 2001 From: Nathan Van Fleet Date: Sat, 13 Aug 2022 06:41:08 -0700 Subject: [PATCH] Remove observation of key-path (#380) This was previously used in an assert when hiding the info view, but that implemenatation was removed but this wasn't. --- platform/ios/platform/ios/src/MGLMapView.mm | 2 -- 1 file changed, 2 deletions(-) diff --git a/platform/ios/platform/ios/src/MGLMapView.mm b/platform/ios/platform/ios/src/MGLMapView.mm index 039b97016..9607f92fc 100644 --- a/platform/ios/platform/ios/src/MGLMapView.mm +++ b/platform/ios/platform/ios/src/MGLMapView.mm @@ -568,7 +568,6 @@ public: _attributionButton.translatesAutoresizingMaskIntoConstraints = NO; [self addSubview:_attributionButton]; _attributionButtonConstraints = [NSMutableArray array]; - [_attributionButton addObserver:self forKeyPath:@"hidden" options:NSKeyValueObservingOptionNew context:NULL]; UILongPressGestureRecognizer *attributionLongPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(showAttribution:)]; [_attributionButton addGestureRecognizer:attributionLongPress]; @@ -736,7 +735,6 @@ public: [[UIDevice currentDevice] endGeneratingDeviceOrientationNotifications]; [[NSNotificationCenter defaultCenter] removeObserver:self]; - [_attributionButton removeObserver:self forKeyPath:@"hidden"]; // Removing the annotations unregisters any outstanding KVO observers. NSArray *annotations = self.annotations;