diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-06-29 14:28:41 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-08 17:24:00 +0200 |
commit | 5968e97fec8fe24398f05c694d6882895671b9f6 (patch) | |
tree | 25963b8da7095e48fa4835c689ab550f6fef76b9 /src/wayland.cpp | |
parent | 1a4f20e844123e3b77e4bd25e8d588e50bde664f (diff) |
wayland: do not special-case ~display for DEBUG_OUTPUT
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/wayland.cpp')
-rw-r--r-- | src/wayland.cpp | 13 |
1 files 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<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; } |