[core] Get rid of ::unref() for Timer and AsyncTask

Not need, legacy from libuv. The RunLoop keep the main
loop running until is explicitly no longer needed.
This commit is contained in:
Thiago Marcos P. Santos
2016-01-08 23:17:43 +02:00
parent e7b0b31d58
commit d7fdcc73bf
11 changed files with 31 additions and 38 deletions

View File

@@ -22,6 +22,7 @@ public:
}
handle()->data = this;
uv_unref(handle());
}
~Impl() {
@@ -44,10 +45,6 @@ public:
}
}
void unref() {
uv_unref(handle());
}
private:
static void timerCallback(UV_TIMER_PARAMS(handle)) {
reinterpret_cast<Impl*>(handle->data)->cb();
@@ -78,9 +75,5 @@ void Timer::stop() {
impl->stop();
}
void Timer::unref() {
impl->unref();
}
} // namespace util
} // namespace mbgl