[android] remove manual ref counting on activation/deactivation

This commit is contained in:
Ivo van Dongen
2017-07-13 12:38:48 +03:00
committed by Ivo van Dongen
parent 733661948c
commit e7f45e0b19
2 changed files with 0 additions and 9 deletions

View File

@@ -120,9 +120,6 @@ gl::ProcAddress NativeMapView::initializeExtension(const char* name) {
}
void NativeMapView::activate() {
if (active++) {
return;
}
oldDisplay = eglGetCurrentDisplay();
oldReadSurface = eglGetCurrentSurface(EGL_READ);
@@ -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) {

View File

@@ -334,8 +334,6 @@ private:
std::shared_ptr<mbgl::ThreadPool> threadPool;
std::unique_ptr<mbgl::Map> map;
mbgl::EdgeInsets insets;
unsigned active = 0;
};
} // namespace android