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:
Jonathan Lebon 2018-09-25 22:58:39 -04:00 committed by Atomic Bot
parent 3c9e212f71
commit efbe161d65

View File

@ -87,20 +87,6 @@ start_daemon (GDBusConnection *connection,
return rpm_ostree_daemon != NULL; 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 static void
on_bus_name_released (GDBusConnection *connection, on_bus_name_released (GDBusConnection *connection,
GAsyncResult *result, GAsyncResult *result,
@ -342,8 +328,7 @@ rpmostree_builtin_start_daemon (int argc,
if (!start_daemon (bus, error)) if (!start_daemon (bus, error))
return FALSE; return FALSE;
(void) g_bus_own_name_on_connection (bus, DBUS_NAME, G_BUS_NAME_OWNER_FLAGS_NONE, (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)) else if (!connect_to_peer (service_dbus_fd, error))
return FALSE; return FALSE;