pidgin/pidgin

df50021edabd
Parents c13754d0bd3d
Children be1e91019453
Remove some purple_protocol_ api that was no longer used

Testing Done:
Compiled

Reviewed at https://reviews.imfreedom.org/r/2164/
--- a/ChangeLog.API Mon Jan 02 02:54:22 2023 -0600
+++ b/ChangeLog.API Mon Jan 02 02:55:22 2023 -0600
@@ -663,6 +663,9 @@
* PurplePounceEvent
* PurplePounceOption
* PurplePrefsUiOps
+ * purple_protocol_got_account_idle
+ * purple_protocol_got_account_status
+ * purple_protocol_got_account_status_with_attributes
* PurpleProxyConnectData
* PurpleProxyConnectFunction
* purple_proxy_connect
--- a/libpurple/protocols.c Mon Jan 02 02:54:22 2023 -0600
+++ b/libpurple/protocols.c Mon Jan 02 02:55:22 2023 -0600
@@ -42,53 +42,6 @@
/* Protocol API */
/**************************************************************************/
void
-purple_protocol_got_account_idle(PurpleAccount *account, gboolean idle,
- time_t idle_time)
-{
- g_return_if_fail(account != NULL);
- g_return_if_fail(purple_account_is_connected(account));
-
- purple_presence_set_idle(purple_account_get_presence(account),
- idle, idle_time);
-}
-
-void
-purple_protocol_got_account_status_with_attributes(PurpleAccount *account,
- const gchar *status_id,
- GHashTable *attributes)
-{
- PurplePresence *presence;
- PurpleStatus *status;
-
- g_return_if_fail(account != NULL);
- g_return_if_fail(status_id != NULL);
- g_return_if_fail(purple_account_is_connected(account));
-
- presence = purple_account_get_presence(account);
- status = purple_presence_get_status(presence, status_id);
-
- g_return_if_fail(status != NULL);
-
- purple_status_set_active_with_attributes(status, TRUE, attributes);
-}
-
-void
-purple_protocol_got_account_status(PurpleAccount *account, const char *status_id, ...)
-{
- GHashTable *attributes = NULL;
- va_list args;
-
- va_start(args, status_id);
- attributes = purple_attrs_from_vargs(args);
- va_end(args);
-
- purple_protocol_got_account_status_with_attributes(account, status_id,
- attributes);
-
- g_hash_table_destroy(attributes);
-}
-
-void
purple_protocol_got_account_actions(PurpleAccount *account)
{
--- a/libpurple/protocols.h Mon Jan 02 02:54:22 2023 -0600
+++ b/libpurple/protocols.h Mon Jan 02 02:55:22 2023 -0600
@@ -41,48 +41,6 @@
/**************************************************************************/
/**
- * purple_protocol_got_account_idle:
- * @account: The account.
- * @idle: The user's idle state.
- * @idle_time: The user's idle time.
- *
- * Notifies Purple that our account's idle state and time have changed.
- *
- * This is meant to be called from protocols.
- */
-void purple_protocol_got_account_idle(PurpleAccount *account, gboolean idle,
- time_t idle_time);
-
-/**
- * purple_protocol_got_account_status:
- * @account: The account the user is on.
- * @status_id: The status ID.
- * @...: A NULL-terminated list of attribute IDs and values.
- *
- * Notifies Purple that our account's status has changed.
- *
- * This is meant to be called from protocols.
- */
-void purple_protocol_got_account_status(PurpleAccount *account,
- const char *status_id, ...)
- G_GNUC_NULL_TERMINATED;
-
-/**
- * purple_protocol_got_account_status_with_attributes: (rename-to purple_protocol_got_account_status):
- * @account: The account the user is on.
- * @status_id: The status ID.
- * @attributes: (element-type utf8 gpointer): A hash table of attribute IDs and
- * their corresponding values.
- *
- * Notifies Purple that our account's status has changed.
- *
- * This is meant to be called from protocols.
- *
- * Since: 3.0.0
- */
-void purple_protocol_got_account_status_with_attributes(PurpleAccount *account, const gchar *status_id, GHashTable *attributes);
-
-/**
* purple_protocol_got_account_actions:
* @account: The account.
*