From a0955b17df3c051f2d38929b252917345f30c5f2 Mon Sep 17 00:00:00 2001 From: Gary Kramlich Date: Mon, 20 Feb 2023 08:33:48 -0600 Subject: Remove conversation's internal history api as it will be replace by the new history api Testing Done: Joined a MUC and verified that that history was still displayed and that sending messages and stuff worked. Reviewed at https://reviews.imfreedom.org/r/2238/ --- finch/gntconv.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'finch') diff --git a/finch/gntconv.c b/finch/gntconv.c index 0cd09d45fa..ff8bb1fc8b 100644 --- a/finch/gntconv.c +++ b/finch/gntconv.c @@ -460,13 +460,6 @@ conv_updated(PurpleConversation *conv, PurpleConversationUpdateType type) } } -static void -clear_scrollback_cb(GntMenuItem *item, gpointer ggconv) -{ - FinchConv *ggc = ggconv; - purple_conversation_clear_message_history(ggc->active_conv); -} - static void send_file_cb(GntMenuItem *item, gpointer ggconv) { @@ -580,10 +573,6 @@ gg_create_menu(FinchConv *ggc) sub = gnt_menu_new(GNT_MENU_POPUP); gnt_menuitem_set_submenu(item, GNT_MENU(sub)); - item = gnt_menuitem_new(_("Clear Scrollback")); - gnt_menu_add_item(GNT_MENU(sub), item); - gnt_menuitem_set_callback(item, clear_scrollback_cb, ggc); - item = gnt_menuitem_check_new(_("Show Timestamps")); gnt_menuitem_check_set_checked(GNT_MENU_ITEM_CHECK(item), purple_prefs_get_bool(PREF_ROOT "/timestamps")); @@ -1164,15 +1153,6 @@ debug_command_cb(PurpleConversation *conv, return PURPLE_CMD_RET_OK; } -/* Xerox */ -static PurpleCmdRet -clear_command_cb(PurpleConversation *conv, - const char *cmd, char **args, char **error, void *data) -{ - purple_conversation_clear_message_history(conv); - return PURPLE_CMD_RET_OK; -} - /* Xerox */ static PurpleCmdRet help_command_cb(PurpleConversation *conv, @@ -1318,9 +1298,6 @@ finch_conversation_init(void) purple_cmd_register("debug", "w", PURPLE_CMD_P_DEFAULT, PURPLE_CMD_FLAG_CHAT | PURPLE_CMD_FLAG_IM, NULL, debug_command_cb, _("debug <option>: Send various debug information to the current conversation."), NULL); - purple_cmd_register("clear", "", PURPLE_CMD_P_DEFAULT, - PURPLE_CMD_FLAG_CHAT | PURPLE_CMD_FLAG_IM, NULL, - clear_command_cb, _("clear: Clears the conversation scrollback."), NULL); purple_cmd_register("help", "w", PURPLE_CMD_P_DEFAULT, PURPLE_CMD_FLAG_CHAT | PURPLE_CMD_FLAG_IM | PURPLE_CMD_FLAG_ALLOW_WRONG_ARGS, NULL, help_command_cb, _("help <command>: Help on a specific command."), NULL); -- cgit v1.2.1