From 5968e97fec8fe24398f05c694d6882895671b9f6 Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Thu, 29 Jun 2017 14:28:41 +0200 Subject: [PATCH] wayland: do not special-case ~display for DEBUG_OUTPUT Signed-off-by: Marcus Fritzsch --- src/wayland.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/wayland.cpp b/src/wayland.cpp index 3162d4e..62c1afe 100644 --- a/src/wayland.cpp +++ b/src/wayland.cpp @@ -18,17 +18,8 @@ namespace wl { // |_| |___/ display::display() : d(std::unique_ptr( - wl_display_connect(nullptr), -#ifdef DEBUG_OUTPUT - [](struct wl_display *d) { - logdebug("wl::display ~display @ %p", d); - wl_display_disconnect(d); - })), -#else - &wl_display_disconnect)), -#endif - r(d.get()) { -} + wl_display_connect(nullptr), &wl_display_disconnect)), + r(d.get()) {} bool display::ok() const { return d && wl_display_get_error(d.get()) == 0; } -- 2.16.6