wayland: do not special-case ~display for DEBUG_OUTPUT
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Thu, 29 Jun 2017 12:28:41 +0000 (14:28 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000 (17:24 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/wayland.cpp

index 3162d4e..62c1afe 100644 (file)
@@ -18,17 +18,8 @@ namespace wl {
 //             |_|            |___/
 display::display()
    : d(std::unique_ptr<struct wl_display, void (*)(struct wl_display *)>(
-        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; }