From f91322cf4aedc1842e24518ec16c76139e14d603 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 26 Nov 2014 16:34:03 -0800 Subject: [PATCH] Remove unused --- include/mbgl/util/uv.hpp | 5 ----- src/util/uv.cpp | 12 ------------ 2 files changed, 17 deletions(-) diff --git a/include/mbgl/util/uv.hpp b/include/mbgl/util/uv.hpp index 3c533cfbf..a4252e5cb 100644 --- a/include/mbgl/util/uv.hpp +++ b/include/mbgl/util/uv.hpp @@ -12,11 +12,6 @@ namespace uv { std::string cwd(); -struct deleter { - void operator()(uv_async_t *async); - void operator()(uv_timer_t *timer); -}; - class thread; class rwlock; class loop; diff --git a/src/util/uv.cpp b/src/util/uv.cpp index 03a885d30..7aa5bad0c 100644 --- a/src/util/uv.cpp +++ b/src/util/uv.cpp @@ -22,16 +22,4 @@ std::string cwd() { #endif } -void deleter::operator()(uv_async_t *async) { - uv_close((uv_handle_t *)async, [](uv_handle_t *handle) { - delete (uv_async_t *)handle; - }); -} - -void deleter::operator()(uv_timer_t *timer) { - uv_close((uv_handle_t *)timer, [](uv_handle_t *handle) { - delete (uv_timer_t *)handle; - }); -} - }