Fri, 27 Aug 2021 02:34:03 -0500
Remove a number of functions from gtkconv.c and gtkconvwin.c that aren't used anymore
Testing Done:
Compile only
Reviewed at https://reviews.imfreedom.org/r/907/
| ChangeLog.API | file | annotate | diff | comparison | revisions | |
| pidgin/gtkconv.c | file | annotate | diff | comparison | revisions | |
| pidgin/gtkconvwin.h | file | annotate | diff | comparison | revisions |
--- a/ChangeLog.API Tue Aug 24 04:52:14 2021 -0500 +++ b/ChangeLog.API Fri Aug 27 02:34:03 2021 -0500 @@ -784,6 +784,10 @@ * pidgin_conv_placement_set_current_func * pidgin_conv_placement_get_current_func * pidgin_conv_update_buddy_icon + * pidgin_conv_window_first_chat + * pidgin_conv_window_first_im + * pidgin_conv_window_last_im + * pidgin_conv_window_last_chat * pidgin_create_dialog, use pidgin_dialog_new instead. * pidgin_create_small_button, use pidgin_close_button_new instead. * pidgin_create_status_icon
--- a/pidgin/gtkconv.c Tue Aug 24 04:52:14 2021 -0500 +++ b/pidgin/gtkconv.c Fri Aug 27 02:34:03 2021 -0500 @@ -6153,108 +6153,6 @@ return g_list_length(win->gtkconvs); } -PidginConvWindow * -pidgin_conv_window_first_im(void) -{ - GList *wins, *convs; - PidginConvWindow *win; - PidginConversation *conv; - - for (wins = pidgin_conv_windows_get_list(); wins != NULL; wins = wins->next) { - win = wins->data; - - for (convs = win->gtkconvs; - convs != NULL; - convs = convs->next) { - - conv = convs->data; - - if (PURPLE_IS_IM_CONVERSATION(conv->active_conv)) - return win; - } - } - - return NULL; -} - -PidginConvWindow * -pidgin_conv_window_last_im(void) -{ - GList *wins, *convs; - PidginConvWindow *win; - PidginConversation *conv; - - for (wins = g_list_last(pidgin_conv_windows_get_list()); - wins != NULL; - wins = wins->prev) { - - win = wins->data; - - for (convs = win->gtkconvs; - convs != NULL; - convs = convs->next) { - - conv = convs->data; - - if (PURPLE_IS_IM_CONVERSATION(conv->active_conv)) - return win; - } - } - - return NULL; -} - -PidginConvWindow * -pidgin_conv_window_first_chat(void) -{ - GList *wins, *convs; - PidginConvWindow *win; - PidginConversation *conv; - - for (wins = pidgin_conv_windows_get_list(); wins != NULL; wins = wins->next) { - win = wins->data; - - for (convs = win->gtkconvs; - convs != NULL; - convs = convs->next) { - - conv = convs->data; - - if (PURPLE_IS_CHAT_CONVERSATION(conv->active_conv)) - return win; - } - } - - return NULL; -} - -PidginConvWindow * -pidgin_conv_window_last_chat(void) -{ - GList *wins, *convs; - PidginConvWindow *win; - PidginConversation *conv; - - for (wins = g_list_last(pidgin_conv_windows_get_list()); - wins != NULL; - wins = wins->prev) { - - win = wins->data; - - for (convs = win->gtkconvs; - convs != NULL; - convs = convs->next) { - - conv = convs->data; - - if (PURPLE_IS_CHAT_CONVERSATION(conv->active_conv)) - return win; - } - } - - return NULL; -} - gboolean pidgin_conv_is_hidden(PidginConversation *gtkconv) {
--- a/pidgin/gtkconvwin.h Tue Aug 24 04:52:14 2021 -0500 +++ b/pidgin/gtkconvwin.h Fri Aug 27 02:34:03 2021 -0500 @@ -243,34 +243,6 @@ */ guint pidgin_conv_window_get_gtkconv_count(PidginConvWindow *win); -/** - * pidgin_conv_window_first_im: - * - * Returns: The window which has the first IM, %NULL if no IM is found. - */ -PidginConvWindow *pidgin_conv_window_first_im(void); - -/** - * pidgin_conv_window_last_im: - * - * Returns: The window which has the last IM, %NULL if no IM is found. - */ -PidginConvWindow *pidgin_conv_window_last_im(void); - -/** - * pidgin_conv_window_first_chat: - * - * Returns: The window which has the first chat, %NULL if no chat is found. - */ -PidginConvWindow *pidgin_conv_window_first_chat(void); - -/** - * pidgin_conv_window_last_chat: - * - * Returns: The window which has the last chat, %NULL if no chat is found. - */ -PidginConvWindow *pidgin_conv_window_last_chat(void); - void pidgin_conv_placement_place(PidginConversation *conv); G_END_DECLS