Remove Purple.Account.get_protocol_name

Sun, 10 Nov 2024 04:09:47 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Sun, 10 Nov 2024 04:09:47 -0600
changeset 43063
45e4e7e39d7f
parent 43062
9d134b69b834
child 43064
ac5311a8f11e

Remove Purple.Account.get_protocol_name

This was deprecated and is now safe to remove.

Testing Done:
Called in the turtles.

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

libpurple/purpleaccount.c file | annotate | diff | comparison | revisions
libpurple/purpleaccount.h file | annotate | diff | comparison | revisions
--- a/libpurple/purpleaccount.c	Sun Nov 10 03:55:48 2024 -0600
+++ b/libpurple/purpleaccount.c	Sun Nov 10 04:09:47 2024 -0600
@@ -1539,23 +1539,6 @@
 	return account->protocol;
 }
 
-const char *
-purple_account_get_protocol_name(PurpleAccount *account) {
-	const char *name = NULL;
-
-	g_return_val_if_fail(PURPLE_IS_ACCOUNT(account), NULL);
-
-	if(PURPLE_IS_PROTOCOL(account->protocol)) {
-		name = purple_protocol_get_name(account->protocol);
-	}
-
-	if(purple_strempty(name)) {
-		name = _("Unknown");
-	}
-
-	return name;
-}
-
 PurpleConnectionState
 purple_account_get_connection_state(PurpleAccount *account) {
 	g_return_val_if_fail(PURPLE_IS_ACCOUNT(account),
--- a/libpurple/purpleaccount.h	Sun Nov 10 03:55:48 2024 -0600
+++ b/libpurple/purpleaccount.h	Sun Nov 10 04:09:47 2024 -0600
@@ -447,21 +447,6 @@
 PurpleProtocol *purple_account_get_protocol(PurpleAccount *account);
 
 /**
- * purple_account_get_protocol_name:
- * @account: The account.
- *
- * Returns the account's protocol name.
- *
- * Returns: The protocol name.
- *
- * Since: 2.0
- *
- * Deprecated: 3.0
- */
-PURPLE_DEPRECATED
-const char *purple_account_get_protocol_name(PurpleAccount *account);
-
-/**
  * purple_account_get_connection:
  * @account: The account.
  *

mercurial