[libsoup/carlosgc/thread-safe: 2/21] session: remove unsused num_messages from SoupSessionHost




commit c9ed8bf607a978ab3e91e7c3ce83ab494a458254
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Wed Mar 30 11:04:39 2022 +0200

    session: remove unsused num_messages from SoupSessionHost

 libsoup/soup-session.c | 10 ----------
 1 file changed, 10 deletions(-)
---
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index dc6c992b..534e3317 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -78,8 +78,6 @@ typedef struct {
        GSList      *connections;      /* CONTAINS: SoupConnection */
        guint        num_conns;
 
-       guint        num_messages;
-
        GSource     *keep_alive_src;
        SoupSession *session;
 } SoupSessionHost;
@@ -1368,7 +1366,6 @@ soup_session_append_queue_item (SoupSession        *session,
 {
        SoupSessionPrivate *priv = soup_session_get_instance_private (session);
        SoupMessageQueueItem *item;
-       SoupSessionHost *host;
        GSList *f;
 
         soup_message_set_metrics_timestamp (msg, SOUP_MESSAGE_METRICS_FETCH_START);
@@ -1380,9 +1377,6 @@ soup_session_append_queue_item (SoupSession        *session,
                               soup_message_queue_item_ref (item),
                               (GCompareDataFunc)compare_queue_item, NULL);
 
-       host = get_host_for_message (session, item->msg);
-       host->num_messages++;
-
        if (!soup_message_query_flags (msg, SOUP_MESSAGE_NO_REDIRECT)) {
                soup_message_add_header_handler (
                        msg, "got_body", "Location",
@@ -1560,7 +1554,6 @@ soup_session_unqueue_item (SoupSession          *session,
                           SoupMessageQueueItem *item)
 {
        SoupSessionPrivate *priv = soup_session_get_instance_private (session);
-       SoupSessionHost *host;
        GSList *f;
 
         soup_message_set_connection (item->msg, NULL);
@@ -1572,9 +1565,6 @@ soup_session_unqueue_item (SoupSession          *session,
 
        g_queue_remove (priv->queue, item);
 
-       host = get_host_for_message (session, item->msg);
-       host->num_messages--;
-
        /* g_signal_handlers_disconnect_by_func doesn't work if you
         * have a metamarshal, meaning it doesn't work with
         * soup_message_add_header_handler()


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