[libsoup/libsoup-3-0] session: remove unsused num_messages from SoupSessionHost
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/libsoup-3-0] session: remove unsused num_messages from SoupSessionHost
- Date: Thu, 30 Jun 2022 08:29:04 +0000 (UTC)
commit ee65d36051579f3be54cf1bd7a7fae317b2365c6
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 d8adb04c..c36da01b 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -82,8 +82,6 @@ typedef struct {
GSList *connections; /* CONTAINS: SoupConnection */
guint num_conns;
- guint num_messages;
-
GSource *keep_alive_src;
SoupSession *session;
} SoupSessionHost;
@@ -1358,7 +1356,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);
@@ -1370,9 +1367,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",
@@ -1550,7 +1544,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);
@@ -1562,9 +1555,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]