summaryrefslogtreecommitdiffstats
path: root/widget/gtk/nsWaylandDisplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'widget/gtk/nsWaylandDisplay.cpp')
-rw-r--r--widget/gtk/nsWaylandDisplay.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/widget/gtk/nsWaylandDisplay.cpp b/widget/gtk/nsWaylandDisplay.cpp
index 1ea87b3bc5..c63c8f6564 100644
--- a/widget/gtk/nsWaylandDisplay.cpp
+++ b/widget/gtk/nsWaylandDisplay.cpp
@@ -28,7 +28,6 @@ void WaylandDisplayRelease() {
MOZ_RELEASE_ASSERT(NS_IsMainThread(),
"WaylandDisplay can be released in main thread only!");
if (!gWaylandDisplay) {
- NS_WARNING("WaylandDisplayRelease(): Wayland display is missing!");
return;
}
delete gWaylandDisplay;
@@ -151,7 +150,6 @@ static void global_registry_handler(void* data, wl_registry* registry,
registry, id, &xdg_dbus_annotation_manager_v1_interface, 1);
display->SetXdgDbusAnnotationManager(annotationManager);
} else if (iface.EqualsLiteral("wl_seat")) {
- // Install keyboard handlers for main thread only
auto* seat =
WaylandRegistryBind<wl_seat>(registry, id, &wl_seat_interface, 1);
KeymapWrapper::SetSeat(seat, id);
@@ -173,7 +171,7 @@ static void global_registry_remover(void* data, wl_registry* registry,
static const struct wl_registry_listener registry_listener = {
global_registry_handler, global_registry_remover};
-nsWaylandDisplay::~nsWaylandDisplay() {}
+nsWaylandDisplay::~nsWaylandDisplay() = default;
static void WlLogHandler(const char* format, va_list args) {
char error[1000];