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.
This commit is contained in:
Nathan Van Fleet
2022-08-13 06:41:08 -07:00
committed by GitHub
parent b67b5a4a27
commit 6335d04ca9

View File

@@ -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;