diff options
Diffstat (limited to 'libappstream-builder/asb-context.c')
-rw-r--r-- | libappstream-builder/asb-context.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libappstream-builder/asb-context.c b/libappstream-builder/asb-context.c index 4980c61..15e8f8f 100644 --- a/libappstream-builder/asb-context.c +++ b/libappstream-builder/asb-context.c @@ -36,7 +36,6 @@ #include "as-cleanup.h" #include "asb-context.h" #include "asb-context-private.h" -#include "asb-panel.h" #include "asb-plugin.h" #include "asb-plugin-loader.h" #include "asb-task.h" @@ -61,7 +60,6 @@ struct _AsbContextPrivate GMutex apps_mutex; /* for ->apps */ GPtrArray *file_globs; /* of AsbPackage */ GPtrArray *packages; /* of AsbPackage */ - AsbPanel *panel; AsbPluginLoader *plugin_loader; AsbContextFlags flags; guint max_threads; @@ -138,10 +136,6 @@ asb_context_set_flags (AsbContext *ctx, AsbContextFlags flags) as_store_add_metadata_index (priv->store_old, "X-CacheID"); } priv->flags = flags; - - /* only enable the fancy panel if not in batch mode */ - asb_panel_set_enabled (priv->panel, - (flags & ASB_CONTEXT_FLAG_BATCH_OUTPUT) == 0); } /** @@ -1231,7 +1225,6 @@ asb_context_process (AsbContext *ctx, GError **error) /* add each package */ g_print ("Processing packages...\n"); - asb_panel_set_job_total (priv->panel, priv->packages->len); tasks = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref); for (i = 0; i < priv->packages->len; i++) { pkg = g_ptr_array_index (priv->packages, i); @@ -1253,9 +1246,7 @@ asb_context_process (AsbContext *ctx, GError **error) /* create task */ task = asb_task_new (ctx); - asb_task_set_id (task, i); asb_task_set_package (task, pkg); - asb_task_set_panel (task, priv->panel); g_ptr_array_add (tasks, task); /* run the task */ @@ -1480,7 +1471,6 @@ asb_context_finalize (GObject *object) g_object_unref (priv->store_ignore); g_object_unref (priv->store_old); g_object_unref (priv->plugin_loader); - g_object_unref (priv->panel); g_ptr_array_unref (priv->packages); g_list_foreach (priv->apps, (GFunc) g_object_unref, NULL); g_list_free (priv->apps); @@ -1508,7 +1498,6 @@ asb_context_init (AsbContext *ctx) AsbContextPrivate *priv = GET_PRIVATE (ctx); priv->plugin_loader = asb_plugin_loader_new (ctx); - priv->panel = asb_panel_new (); priv->packages = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref); g_mutex_init (&priv->apps_mutex); priv->store_failed = as_store_new (); |