Inline zephyr_resubscribe

Thu, 14 Jan 2021 20:31:40 -0600

author
Arkadiy Illarionov <qarkai@gmail.com>
date
Thu, 14 Jan 2021 20:31:40 -0600
changeset 40703
153098577f8c
parent 40702
d036174d9e22
child 40704
09fc97ff0b52

Inline zephyr_resubscribe

It's used once and return value wasn't utilized.

Testing Done:
Compile.

Reviewed at https://reviews.imfreedom.org/r/426/

libpurple/protocols/zephyr/zephyr.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/zephyr/zephyr.c	Thu Jan 14 07:41:45 2021 -0600
+++ b/libpurple/protocols/zephyr/zephyr.c	Thu Jan 14 20:31:40 2021 -0600
@@ -2407,26 +2407,18 @@
 }
 
 
-static int zephyr_resubscribe(PurpleConnection *gc)
+/* Resubscribe to the in-memory list of subscriptions and also unsubscriptions */
+static void
+zephyr_action_resubscribe(PurpleProtocolAction *action)
 {
-	/* Resubscribe to the in-memory list of subscriptions and also
-	   unsubscriptions*/
-	zephyr_account *zephyr = purple_connection_get_protocol_data(gc);
+	zephyr_account *zephyr = purple_connection_get_protocol_data(action->connection);
+
 	for (GSList *s = zephyr->subscrips; s; s = s->next) {
 		zephyr_triple *zt = s->data;
 		/* XXX We really should care if this fails */
 		zephyr->subscribe_to(zephyr, zt->class, zt->instance, zt->recipient);
 	}
 	/* XXX handle unsubscriptions */
-	return 1;
-}
-
-
-static void zephyr_action_resubscribe(PurpleProtocolAction *action)
-{
-
-	PurpleConnection *gc = action->connection;
-	zephyr_resubscribe(gc);
 }
 
 

mercurial