[gnome-settings-daemon] updates: Remove some unreachable code
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] updates: Remove some unreachable code
- Date: Mon, 8 Oct 2012 13:29:11 +0000 (UTC)
commit 5a9f9183a00fdd4d5c462fa6ef94b57969d0a258
Author: Richard Hughes <richard hughsie com>
Date: Mon Oct 8 14:31:03 2012 +0100
updates: Remove some unreachable code
plugins/updates/gsd-updates-manager.c | 37 ---------------------------------
1 files changed, 0 insertions(+), 37 deletions(-)
---
diff --git a/plugins/updates/gsd-updates-manager.c b/plugins/updates/gsd-updates-manager.c
index c9feb4b..95ee1c4 100644
--- a/plugins/updates/gsd-updates-manager.c
+++ b/plugins/updates/gsd-updates-manager.c
@@ -72,7 +72,6 @@ struct GsdUpdatesManagerPrivate
static void gsd_updates_manager_class_init (GsdUpdatesManagerClass *klass);
static void gsd_updates_manager_init (GsdUpdatesManager *updates_manager);
static void gsd_updates_manager_finalize (GObject *object);
-static void update_packages_finished_cb (PkTask *task, GAsyncResult *res, GsdUpdatesManager *manager);
static void emit_changed (GsdUpdatesManager *manager);
G_DEFINE_TYPE (GsdUpdatesManager, gsd_updates_manager, G_TYPE_OBJECT)
@@ -556,42 +555,6 @@ notify_normal_updates_maybe (GsdUpdatesManager *manager, GPtrArray *array)
}
static void
-update_packages_finished_cb (PkTask *task,
- GAsyncResult *res,
- GsdUpdatesManager *manager)
-{
- PkResults *results;
- GError *error = NULL;
- PkError *error_code = NULL;
-
- /* get the results */
- results = pk_task_generic_finish (task, res, &error);
- if (results == NULL) {
- g_warning ("failed to update system: %s",
- error->message);
- g_error_free (error);
- goto out;
- }
-
- /* check error code */
- error_code = pk_results_get_error_code (results);
- if (error_code != NULL) {
- g_warning ("failed to update system: %s, %s",
- pk_error_enum_to_string (pk_error_get_code (error_code)),
- pk_error_get_details (error_code));
- goto out;
- }
-
- /* notify */
- manager->priv->number_updates_critical_last_shown = 0;
-out:
- if (error_code != NULL)
- g_object_unref (error_code);
- if (results != NULL)
- g_object_unref (results);
-}
-
-static void
notify_failed_get_updates_maybe (GsdUpdatesManager *manager)
{
const gchar *button;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]