[libsoup/carlosgc/thread-safe: 13/32] session: remove unsused num_messages from SoupSessionHost
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/carlosgc/thread-safe: 13/32] session: remove unsused num_messages from SoupSessionHost
- Date: Wed, 8 Jun 2022 10:38:13 +0000 (UTC)
commit 3ffdf14e29320062e1dd3b88d963875ed8258368
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]