app/start-daemon: Drop unused callbacks
Noticed these while perusing the codebase. We don't do anything in those handlers, and they're optional, so just nix them. Closes: #1594 Approved by: cgwalters
This commit is contained in:
parent
3c9e212f71
commit
efbe161d65
@ -87,20 +87,6 @@ start_daemon (GDBusConnection *connection,
|
||||
return rpm_ostree_daemon != NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
on_name_acquired (GDBusConnection *connection,
|
||||
const char *name,
|
||||
gpointer user_data)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
on_name_lost (GDBusConnection *connection,
|
||||
const char *name,
|
||||
gpointer user_data)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
on_bus_name_released (GDBusConnection *connection,
|
||||
GAsyncResult *result,
|
||||
@ -342,8 +328,7 @@ rpmostree_builtin_start_daemon (int argc,
|
||||
if (!start_daemon (bus, error))
|
||||
return FALSE;
|
||||
(void) g_bus_own_name_on_connection (bus, DBUS_NAME, G_BUS_NAME_OWNER_FLAGS_NONE,
|
||||
on_name_acquired, on_name_lost,
|
||||
NULL, NULL);
|
||||
NULL, NULL, NULL, NULL);
|
||||
}
|
||||
else if (!connect_to_peer (service_dbus_fd, error))
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user