summaryrefslogtreecommitdiff
path: root/src/mbgl/map
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-12-04 14:18:41 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-12-06 14:08:40 -0800
commitde098591c5969735f2ed4683f9cc47221f152dd1 (patch)
tree0fda2a370b1c7cdf9a1ea1909231e8c38c859c2a /src/mbgl/map
parent004d12ea0b89d5fe369ab5631e20cc7e2caef429 (diff)
downloadqtlocation-mapboxgl-de098591c5969735f2ed4683f9cc47221f152dd1.tar.gz
Remove Map::cleanup and Painter::cleanup
Both were noops.
Diffstat (limited to 'src/mbgl/map')
-rw-r--r--src/mbgl/map/map.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp
index 539fd8ef08..f46e0f558b 100644
--- a/src/mbgl/map/map.cpp
+++ b/src/mbgl/map/map.cpp
@@ -153,7 +153,6 @@ void Map::start() {
fileSource.clearLoop();
// Closes all open handles on the loop. This means that the loop will automatically terminate.
- asyncCleanup.reset();
asyncRender.reset();
asyncTerminate.reset();
});
@@ -177,11 +176,6 @@ void Map::start() {
}
});
- asyncCleanup = util::make_unique<uv::async>(**loop, [this]() {
- assert(painter);
- painter->cleanup();
- });
-
thread = std::thread([this]() {
#ifndef NDEBUG
mapThread = std::this_thread::get_id();
@@ -276,12 +270,6 @@ void Map::swapped() {
rerender();
}
-void Map::cleanup() {
- if (asyncCleanup != nullptr) {
- asyncCleanup->send();
- }
-}
-
void Map::terminate() {
assert(painter);
painter->terminate();