From 21a3eabf48da9cb57284ed761921b55212151fba Mon Sep 17 00:00:00 2001 From: Nathan Van Fleet Date: Wed, 10 Aug 2022 15:07:02 -0700 Subject: [PATCH] Remove observation of key-path 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 507456c5993..cb7c6d0187f 100644 --- a/platform/ios/platform/ios/src/MGLMapView.mm +++ b/platform/ios/platform/ios/src/MGLMapView.mm @@ -566,7 +566,6 @@ - (void)commonInit _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]; @@ -734,7 +733,6 @@ - (void)dealloc [[UIDevice currentDevice] endGeneratingDeviceOrientationNotifications]; [[NSNotificationCenter defaultCenter] removeObserver:self]; - [_attributionButton removeObserver:self forKeyPath:@"hidden"]; // Removing the annotations unregisters any outstanding KVO observers. NSArray *annotations = self.annotations;