pidgin: 1773b6b2: Remove a few deprecated functions
markdoliner at pidgin.im
markdoliner at pidgin.im
Sat Aug 20 21:15:40 EDT 2011
----------------------------------------------------------------------
Revision: 1773b6b227d0bcd5379a6ed8daa3839ee8f60e9e
Parent: d88754164e558a337e137cc26d9f3508f352be49
Author: markdoliner at pidgin.im
Date: 08/20/11 21:13:46
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/1773b6b227d0bcd5379a6ed8daa3839ee8f60e9e
Changelog:
Remove a few deprecated functions
Changes against parent d88754164e558a337e137cc26d9f3508f352be49
patched ChangeLog.API
patched libpurple/notify.c
patched libpurple/notify.h
-------------- next part --------------
============================================================
--- libpurple/notify.c f82c218ffc860dd5a6e862b98a5e776d793afe4e
+++ libpurple/notify.c c85874bc666c48982ebbf7d0fc9e22ef457f9320
@@ -383,40 +383,6 @@ purple_notify_searchresult_column_is_vis
return column->visible;
}
-guint
-purple_notify_searchresults_get_columns_count(PurpleNotifySearchResults *results)
-{
- g_return_val_if_fail(results != NULL, 0);
-
- return g_list_length(results->columns);
-}
-
-guint
-purple_notify_searchresults_get_rows_count(PurpleNotifySearchResults *results)
-{
- g_return_val_if_fail(results != NULL, 0);
-
- return g_list_length(results->rows);
-}
-
-char *
-purple_notify_searchresults_column_get_title(PurpleNotifySearchResults *results,
- unsigned int column_id)
-{
- g_return_val_if_fail(results != NULL, NULL);
-
- return ((PurpleNotifySearchColumn *)g_list_nth_data(results->columns, column_id))->title;
-}
-
-GList *
-purple_notify_searchresults_row_get(PurpleNotifySearchResults *results,
- unsigned int row_id)
-{
- g_return_val_if_fail(results != NULL, NULL);
-
- return g_list_nth_data(results->rows, row_id);
-}
-
void *
purple_notify_userinfo(PurpleConnection *gc, const char *who,
PurpleNotifyUserInfo *user_info, PurpleNotifyCloseCallback cb, gpointer user_data)
============================================================
--- libpurple/notify.h 7533961557f2d2637a6f8a3a1523ba820f16dbdc
+++ libpurple/notify.h 0c2a4c7b6eef596269ae1f3607a6389f4c6280d6
@@ -311,92 +311,6 @@ void purple_notify_searchresults_row_add
void purple_notify_searchresults_row_add(PurpleNotifySearchResults *results,
GList *row);
-#if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_NOTIFY_C_)
-/**
- * Returns a number of the rows in the search results object.
- *
- * @deprecated This function will be removed in Pidgin 3.0.0 unless
- * there is sufficient demand to keep it. Using this
- * function encourages looping through the results
- * inefficiently. Instead of using this function you
- * should iterate through the results using a loop
- * similar to this:
- * for (l = results->rows; l != NULL; l = l->next)
- * If you really need to get the number of rows you
- * can use g_list_length(results->rows).
- *
- * @param results The search results object.
- *
- * @return Number of the result rows.
- */
-guint purple_notify_searchresults_get_rows_count(PurpleNotifySearchResults *results);
-#endif
-
-#if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_NOTIFY_C_)
-/**
- * Returns a number of the columns in the search results object.
- *
- * @deprecated This function will be removed in Pidgin 3.0.0 unless
- * there is sufficient demand to keep it. Using this
- * function encourages looping through the columns
- * inefficiently. Instead of using this function you
- * should iterate through the columns using a loop
- * similar to this:
- * for (l = results->columns; l != NULL; l = l->next)
- * If you really need to get the number of columns you
- * can use g_list_length(results->columns).
- *
- * @param results The search results object.
- *
- * @return Number of the columns.
- */
-guint purple_notify_searchresults_get_columns_count(PurpleNotifySearchResults *results);
-#endif
-
-#if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_NOTIFY_C_)
-/**
- * Returns a row of the results from the search results object.
- *
- * @deprecated This function will be removed in Pidgin 3.0.0 unless
- * there is sufficient demand to keep it. Using this
- * function encourages looping through the results
- * inefficiently. Instead of using this function you
- * should iterate through the results using a loop
- * similar to this:
- * for (l = results->rows; l != NULL; l = l->next)
- * If you really need to get the data for a particular
- * row you can use g_list_nth_data(results->rows, row_id).
- *
- * @param results The search results object.
- * @param row_id Index of the row to be returned.
- *
- * @return Row of the results.
- */
-GList *purple_notify_searchresults_row_get(PurpleNotifySearchResults *results,
- unsigned int row_id);
-#endif
-
-#if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_NOTIFY_C_)
-/**
- * Returns a title of the search results object's column.
- *
- * @deprecated This function will be removed in Pidgin 3.0.0 unless
- * there is sufficient demand to keep it. Using this
- * function encourages looping through the columns
- * inefficiently. Instead of using this function you
- * should iterate through the name of a particular
- * column you can use
- * g_list_nth_data(results->columns, row_id).
- *
- * @param results The search results object.
- * @param column_id Index of the column.
- *
- * @return Title of the column.
- */
-char *purple_notify_searchresults_column_get_title(PurpleNotifySearchResults *results,
- unsigned int column_id);
-#endif
-
/*@}*/
/**************************************************************************/
============================================================
--- ChangeLog.API 3f918566da8542be85d986b19343a113a18c4d1a
+++ ChangeLog.API d103d563613b16813700d29d3f54e9549d6d9ef6
@@ -10,6 +10,10 @@ version 3.0.0 (??/??/????):
Removed:
* purple_core_migrate
+ * purple_notify_searchresults_column_get_title
+ * purple_notify_searchresults_get_columns_count
+ * purple_notify_searchresults_get_rows_count
+ * purple_notify_searchresults_row_get
* purple_strlcat
* purple_strlcpy
More information about the Commits
mailing list