summaryrefslogtreecommitdiff
path: root/platform/macos/src/MGLMapView.mm
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@mapbox.com>2018-03-23 16:12:34 -0400
committerJulian Rex <julian.rex@mapbox.com>2018-03-23 16:12:34 -0400
commit9b3d5272e78a3b6e8d6539d242519df3b7792acb (patch)
tree14ad0c355896d3dd779e90219cf21882edf4ba2d /platform/macos/src/MGLMapView.mm
parent038915a94019c4cf1c324becc01b1f3abf7905f4 (diff)
downloadqtlocation-mapboxgl-9b3d5272e78a3b6e8d6539d242519df3b7792acb.tar.gz
Updates to macos and tests for previous changes.upstream/jrex-custom-layer-style-changed-leak-3
Diffstat (limited to 'platform/macos/src/MGLMapView.mm')
-rw-r--r--platform/macos/src/MGLMapView.mm8
1 files changed, 0 insertions, 8 deletions
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm
index 8b9a5a982f..4cbf2b9fba 100644
--- a/platform/macos/src/MGLMapView.mm
+++ b/platform/macos/src/MGLMapView.mm
@@ -15,7 +15,6 @@
#import "MGLMultiPoint_Private.h"
#import "MGLOfflineStorage_Private.h"
#import "MGLStyle_Private.h"
-#import "MGLStyleLayerRetentionManager_Private.h"
#import "MGLShape_Private.h"
#import "MGLAccountManager.h"
@@ -145,7 +144,6 @@ public:
@property (nonatomic, readwrite) NSView *attributionView;
@property (nonatomic, readwrite) MGLStyle *style;
-@property (nonatomic) MGLStyleLayerRetentionManager* styleLayerRetentionManager;
/// Mapping from reusable identifiers to annotation images.
@property (nonatomic) NS_MUTABLE_DICTIONARY_OF(NSString *, MGLAnnotationImage *) *annotationImagesByIdentifier;
@@ -258,8 +256,6 @@ public:
- (void)commonInit {
_isTargetingInterfaceBuilder = NSProcessInfo.processInfo.mgl_isInterfaceBuilderDesignablesAgent;
- _styleLayerRetentionManager = [[MGLStyleLayerRetentionManager alloc] init];
-
// Set up cross-platform controllers and resources.
_mbglView = new MGLMapViewImpl(self);
@@ -886,8 +882,6 @@ public:
return;
}
- [self.styleLayerRetentionManager updateRetainedLayers:self.style.managedLayers];
-
if ([self.delegate respondsToSelector:@selector(mapViewWillStartRenderingFrame:)]) {
[self.delegate mapViewWillStartRenderingFrame:self];
}
@@ -903,8 +897,6 @@ public:
[self.style didChangeValueForKey:@"layers"];
}
- [self.styleLayerRetentionManager decrementLifetimes];
-
if ([self.delegate respondsToSelector:@selector(mapViewDidFinishRenderingFrame:fullyRendered:)]) {
[self.delegate mapViewDidFinishRenderingFrame:self fullyRendered:fullyRendered];
}