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

Commit

Permalink
[android] remove manual ref counting on activation/deactivation
Browse files Browse the repository at this point in the history
  • Loading branch information
ivovandongen committed Jul 19, 2017
1 parent 7336619 commit e7f45e0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions platform/android/src/native_map_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ gl::ProcAddress NativeMapView::initializeExtension(const char* name) {
}

void NativeMapView::activate() {
if (active++) {
return;
}

oldDisplay = eglGetCurrentDisplay();
oldReadSurface = eglGetCurrentSurface(EGL_READ);
Expand Down Expand Up @@ -151,10 +148,6 @@ void NativeMapView::activate() {
* From mbgl::Backend.
*/
void NativeMapView::deactivate() {
if (--active) {
return;
}

assert(vm != nullptr);

if (oldContext != context && oldContext != EGL_NO_CONTEXT) {
Expand Down
2 changes: 0 additions & 2 deletions platform/android/src/native_map_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,6 @@ class NativeMapView : public View, public Backend {
std::shared_ptr<mbgl::ThreadPool> threadPool;
std::unique_ptr<mbgl::Map> map;
mbgl::EdgeInsets insets;

unsigned active = 0;
};

} // namespace android
Expand Down

0 comments on commit e7f45e0

Please sign in to comment.