summaryrefslogtreecommitdiff
path: root/finch
diff options
context:
space:
mode:
authorGary Kramlich <grim@reaperworld.com>2023-02-20 08:33:48 -0600
committerGary Kramlich <grim@reaperworld.com>2023-02-20 08:33:48 -0600
commita0955b17df3c051f2d38929b252917345f30c5f2 (patch)
treea1bc52aa4c9c593aa471834c8f418054eed307f0 /finch
parent3d9a104a8649ae92e17a07779f82b7facdb7835c (diff)
downloadpidgin-a0955b17df3c051f2d38929b252917345f30c5f2.tar.gz
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/
Diffstat (limited to 'finch')
-rw-r--r--finch/gntconv.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/finch/gntconv.c b/finch/gntconv.c
index 0cd09d45fa..ff8bb1fc8b 100644
--- a/finch/gntconv.c
+++ b/finch/gntconv.c
@@ -461,13 +461,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)
{
FinchConv *ggc = 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"));
@@ -1166,15 +1155,6 @@ debug_command_cb(PurpleConversation *conv,
/* 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,
const char *cmd, char **args, char **error, void *data)
{
@@ -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 &lt;option&gt;: 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 &lt;command&gt;: Help on a specific command."), NULL);