summaryrefslogtreecommitdiff
path: root/platform/macos/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-02-16 19:15:30 +0100
committerKonstantin Käfer <mail@kkaefer.com>2017-02-20 14:36:27 +0100
commit03a14ff0003e976a4ded70d284bc80adf54bc6c9 (patch)
tree0a8058af32427e598fcfbc614f0096a37b5aa4ea /platform/macos/src
parente2d8a83664a2705edc762ac00dcaf7eead2ae6fd (diff)
downloadqtlocation-mapboxgl-03a14ff0003e976a4ded70d284bc80adf54bc6c9.tar.gz
[darwin] move RunLoop initialization to static variable
Diffstat (limited to 'platform/macos/src')
-rw-r--r--platform/macos/src/MGLMapView.mm7
1 files changed, 0 insertions, 7 deletions
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm
index 2bdd17934f..7776e54183 100644
--- a/platform/macos/src/MGLMapView.mm
+++ b/platform/macos/src/MGLMapView.mm
@@ -105,11 +105,6 @@ NSImage *MGLDefaultMarkerImage() {
return [[NSImage alloc] initWithContentsOfFile:path];
}
-/// Initializes the run loop shim that lives on the main thread.
-void MGLinitializeRunLoop() {
- static mbgl::util::RunLoop mainRunLoop;
-}
-
/// Converts a media timing function into a unit bezier object usable in mbgl.
mbgl::util::UnitBezier MGLUnitBezierForMediaTimingFunction(CAMediaTimingFunction *function) {
if (!function) {
@@ -246,8 +241,6 @@ public:
}
- (void)commonInit {
- MGLinitializeRunLoop();
-
_isTargetingInterfaceBuilder = NSProcessInfo.processInfo.mgl_isInterfaceBuilderDesignablesAgent;
// Set up cross-platform controllers and resources.