/soc/2013/ankitkv/gobjectification: 485b61b1bec0: Removed unused...

Ankit Vani a at nevitus.org
Wed Jun 19 17:21:30 EDT 2013


Changeset: 485b61b1bec0f2cc0237671885fa69821c3dcc9f
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-06-20 00:33 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/485b61b1bec0

Description:

Removed unused PurpleAccount member ui_data.
If the UI wishes to store UI-specific data, it can subclass PurpleAccount.

diffstat:

 libpurple/account.c |  25 -------------------------
 libpurple/account.h |  19 -------------------
 2 files changed, 0 insertions(+), 44 deletions(-)

diffs (71 lines):

diff --git a/libpurple/account.c b/libpurple/account.c
--- a/libpurple/account.c
+++ b/libpurple/account.c
@@ -81,7 +81,6 @@ typedef struct
 	PurplePresence *presence;     /**< Presence.                            */
 	PurpleLog *system_log;        /**< The system log                       */
 
-	void *ui_data;              /**< The UI can put data here.              */
 	PurpleAccountRegistrationCb registration_cb;
 	void *registration_cb_user_data;
 
@@ -2154,30 +2153,6 @@ purple_account_get_ui_bool(const PurpleA
 	return g_value_get_boolean(&setting->value);
 }
 
-gpointer
-purple_account_get_ui_data(const PurpleAccount *account)
-{
-	PurpleAccountPrivate *priv;
-
-	g_return_val_if_fail(account != NULL, NULL);
-
-	priv = PURPLE_ACCOUNT_GET_PRIVATE(account);
-	return priv->ui_data;
-}
-
-void
-purple_account_set_ui_data(PurpleAccount *account,
-                                 gpointer ui_data)
-{
-	PurpleAccountPrivate *priv;
-
-	g_return_if_fail(account != NULL);
-
-	priv = PURPLE_ACCOUNT_GET_PRIVATE(account);
-	priv->ui_data = ui_data;
-}
-
-
 PurpleLog *
 purple_account_get_log(PurpleAccount *account, gboolean create)
 {
diff --git a/libpurple/account.h b/libpurple/account.h
--- a/libpurple/account.h
+++ b/libpurple/account.h
@@ -569,25 +569,6 @@ void purple_account_set_ui_bool(PurpleAc
 							  const char *name, gboolean value);
 
 /**
- * Returns the UI data associated with this account.
- *
- * @param account The account.
- *
- * @return The UI data associated with this object.  This is a
- *         convenience field provided to the UIs--it is not
- *         used by the libuprple core.
- */
-gpointer purple_account_get_ui_data(const PurpleAccount *account);
-
-/**
- * Set the UI data associated with this account.
- *
- * @param account The account.
- * @param ui_data A pointer to associate with this object.
- */
-void purple_account_set_ui_data(PurpleAccount *account, gpointer ui_data);
-
-/**
  * Returns whether or not the account is connected.
  *
  * @param account The account.



More information about the Commits mailing list