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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user