Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core] Remove mutex from Style
Browse files Browse the repository at this point in the history
There's no cross-thread sharing to be protected here.
  • Loading branch information
jfirebaugh committed Dec 1, 2015
1 parent b767404 commit 8a66b70
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/mbgl/style/style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 0 additions & 2 deletions src/mbgl/style/style.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <mbgl/util/worker.hpp>

#include <cstdint>
#include <mutex>
#include <string>
#include <vector>

Expand Down Expand Up @@ -137,7 +136,6 @@ class Style : public GlyphStore::Observer,

std::exception_ptr lastError;

std::mutex mtx;
ZoomHistory zoomHistory;
bool hasPendingTransitions = false;

Expand Down

0 comments on commit 8a66b70

Please sign in to comment.