[gnome-software: 25/38] fwupd: Stop setting soup session




commit 193f2861e81a0192240d346e810a31b26080c6d9
Author: Philip Withnall <pwithnall endlessos org>
Date:   Sun Feb 20 17:24:58 2022 +0000

    fwupd: Stop setting soup session
    
    `gs_plugin_set_soup_session()` is going away.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #1472

 plugins/fwupd/gs-plugin-fwupd.c | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/plugins/fwupd/gs-plugin-fwupd.c b/plugins/fwupd/gs-plugin-fwupd.c
index 9bd04c5be..66b76dfce 100644
--- a/plugins/fwupd/gs-plugin-fwupd.c
+++ b/plugins/fwupd/gs-plugin-fwupd.c
@@ -273,7 +273,6 @@ setup_features_cb (GObject      *source_object,
        g_autoptr(GTask) task = g_steal_pointer (&user_data);
        GsPluginFwupd *self = g_task_get_source_object (task);
        GsPlugin *plugin = GS_PLUGIN (self);
-       g_autoptr(SoupSession) soup_session = NULL;
        g_autoptr(GError) local_error = NULL;
 
        if (!fwupd_client_set_feature_flags_finish (self->client, result, &local_error))
@@ -288,11 +287,6 @@ setup_features_cb (GObject      *source_object,
                g_task_return_error (task, g_steal_pointer (&local_error));
                return;
        }
-       g_object_get (self->client, "soup-session", &soup_session, NULL);
-
-       /* use for gnome-software downloads */
-       if (soup_session != NULL)
-               gs_plugin_set_soup_session (plugin, soup_session);
 
        /* add source */
        self->cached_origin = gs_app_new (gs_plugin_get_name (plugin));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]