[core] Remove mutex from Style

There's no cross-thread sharing to be protected here.
This commit is contained in:
John Firebaugh
2015-11-06 16:06:58 -08:00
parent b7674040ab
commit 8a66b7047f
2 changed files with 0 additions and 4 deletions

View File

@@ -168,8 +168,6 @@ void Style::cascade() {
}
void Style::recalculate(float z) {
std::lock_guard<std::mutex> lock(mtx);
for (const auto& source : sources) {
source->enabled = false;
}

View File

@@ -13,7 +13,6 @@
#include <mbgl/util/worker.hpp>
#include <cstdint>
#include <mutex>
#include <string>
#include <vector>
@@ -137,7 +136,6 @@ private:
std::exception_ptr lastError;
std::mutex mtx;
ZoomHistory zoomHistory;
bool hasPendingTransitions = false;