diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-01-08 23:17:43 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-01-09 01:26:29 +0200 |
commit | d7fdcc73bfcab39f63e547ce2af8435a9859cb08 (patch) | |
tree | 223b8f6bb663fff22ea5f65e487c40d280630cb2 /platform/default/timer.cpp | |
parent | e7b0b31d58997ce0c849129d07a97cb0740beb7e (diff) | |
download | qtlocation-mapboxgl-d7fdcc73bfcab39f63e547ce2af8435a9859cb08.tar.gz |
[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.
Diffstat (limited to 'platform/default/timer.cpp')
-rw-r--r-- | platform/default/timer.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/platform/default/timer.cpp b/platform/default/timer.cpp index 774c1bb97e..4b7a455ccc 100644 --- a/platform/default/timer.cpp +++ b/platform/default/timer.cpp @@ -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 |