From b10907ee44b1c83dbbbf36441f488d02935a3fc5 Mon Sep 17 00:00:00 2001 From: Alexis Date: Fri, 26 Oct 2018 10:39:25 +0200 Subject: [PATCH] refactor: remove useless code --- src/modules/sni/snw.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/modules/sni/snw.cpp b/src/modules/sni/snw.cpp index 577ca273..d6b050fd 100644 --- a/src/modules/sni/snw.cpp +++ b/src/modules/sni/snw.cpp @@ -31,14 +31,10 @@ void Watcher::busAcquired(GDBusConnection* connection, const gchar* name, g_error_free(error); return; } - g_signal_connect_swapped(host->watcher_, - "handle-register-item", + g_signal_connect_swapped(host->watcher_, "handle-register-item", G_CALLBACK(&Watcher::handleRegisterItem), data); - g_signal_connect_swapped(host->watcher_, - "handle-register-host", + g_signal_connect_swapped(host->watcher_, "handle-register-host", G_CALLBACK(&Watcher::handleRegisterHost), data); - sn_watcher_set_protocol_version(host->watcher_, 0); - sn_watcher_set_is_host_registered(host->watcher_, TRUE); } gboolean Watcher::handleRegisterHost(Watcher* obj,