refactor: remove useless code
parent
0c9699b076
commit
b10907ee44
|
@ -31,14 +31,10 @@ void Watcher::busAcquired(GDBusConnection* connection, const gchar* name,
|
||||||
g_error_free(error);
|
g_error_free(error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
g_signal_connect_swapped(host->watcher_,
|
g_signal_connect_swapped(host->watcher_, "handle-register-item",
|
||||||
"handle-register-item",
|
|
||||||
G_CALLBACK(&Watcher::handleRegisterItem), data);
|
G_CALLBACK(&Watcher::handleRegisterItem), data);
|
||||||
g_signal_connect_swapped(host->watcher_,
|
g_signal_connect_swapped(host->watcher_, "handle-register-host",
|
||||||
"handle-register-host",
|
|
||||||
G_CALLBACK(&Watcher::handleRegisterHost), data);
|
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,
|
gboolean Watcher::handleRegisterHost(Watcher* obj,
|
||||||
|
|
Loading…
Reference in New Issue