From 5f31ba77cc1c9e7444db2d497a1ba9e1d8a3f6af Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 25 Jul 2016 10:33:40 +0200 Subject: [PATCH] clean up --- src/uvw/resource.hpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/uvw/resource.hpp b/src/uvw/resource.hpp index 4dccdf51..618c82cc 100644 --- a/src/uvw/resource.hpp +++ b/src/uvw/resource.hpp @@ -19,17 +19,12 @@ class Resource: public Emitter, public Self { template friend class Resource; - template - static void proto(void *resource) { - delete static_cast(resource); - } - protected: template class R> explicit Resource(R, std::shared_ptr ref) : Emitter{}, Self{}, - resource{new U, &proto}, + resource{new U, [](void *res){ delete static_cast(res); }}, pLoop{std::move(ref)} { this->template get()->data = static_cast(this);