pidgin/pidgin

xmpp: Stop tracking user directories

16 months ago, Elliott Sales de Andrade
be1e91019453
Parents df50021edabd
Children c836dbbea641
xmpp: Stop tracking user directories

This existed for XEP-0055, which was removed in /r/2163.

Testing Done:
Compiled only.

Reviewed at https://reviews.imfreedom.org/r/2165/
--- a/libpurple/protocols/jabber/disco.c Mon Jan 02 02:55:22 2023 -0600
+++ b/libpurple/protocols/jabber/disco.c Mon Jan 02 02:56:45 2023 -0600
@@ -209,9 +209,6 @@
/* we found a groupchat or MUC server, add it to the list */
/* XXX: actually check for protocol/muc or gc-1.0 support */
js->chat_servers = g_list_prepend(js->chat_servers, g_strdup(from));
- } else if(purple_strequal(category, "directory") && purple_strequal(type, "user")) {
- /* we found a JUD */
- js->user_directories = g_list_prepend(js->user_directories, g_strdup(from));
} else if(purple_strequal(category, "proxy") && purple_strequal(type, "bytestreams")) {
/* This is a bytestream proxy */
JabberIq *iq;
--- a/libpurple/protocols/jabber/jabber.c Mon Jan 02 02:55:22 2023 -0600
+++ b/libpurple/protocols/jabber/jabber.c Mon Jan 02 02:56:45 2023 -0600
@@ -1096,7 +1096,6 @@
g_hash_table_destroy(js->chats);
g_list_free_full(js->chat_servers, g_free);
- g_list_free_full(js->user_directories, g_free);
g_list_free_full(js->bs_proxies, (GDestroyNotify)jabber_bytestreams_streamhost_free);
--- a/libpurple/protocols/jabber/jabber.h Mon Jan 02 02:55:22 2023 -0600
+++ b/libpurple/protocols/jabber/jabber.h Mon Jan 02 02:56:45 2023 -0600
@@ -158,7 +158,6 @@
GHashTable *chats;
GList *chat_servers;
PurpleRoomlist *roomlist;
- GList *user_directories;
GHashTable *iq_callbacks;
int next_id;