pidgin/pidgin

f34ff5a47b2e
Parents c4a96b5eecba
Children 366a5f428606
Remove some unused functions from purpleconversation.[ch]

Testing Done:
Compiled

Reviewed at https://reviews.imfreedom.org/r/2093/
--- a/ChangeLog.API Thu Nov 24 00:23:08 2022 -0600
+++ b/ChangeLog.API Fri Nov 25 22:57:19 2022 -0600
@@ -457,6 +457,8 @@
* PurpleConversationType
* purple_conversation_add_smiley
* purple_conversation_close_logs
+ * purple_conversation_do_command
+ * purple_conversation_get_max_message_size
* purple_conversation_get_remote_smileys
* purple_conversation_get_smiley
* purple_conversation_is_logging
--- a/libpurple/purpleconversation.c Thu Nov 24 00:23:08 2022 -0600
+++ b/libpurple/purpleconversation.c Fri Nov 25 22:57:19 2022 -0600
@@ -871,37 +871,3 @@
return priv->message_history;
}
-
-gboolean
-purple_conversation_do_command(PurpleConversation *conv, const gchar *cmdline,
- const gchar *markup, gchar **error)
-{
- gchar *mark = NULL, *err = NULL;
- PurpleCmdStatus status;
-
- if(markup == NULL || *markup == '\0') {
- mark = g_markup_escape_text(cmdline, -1);
- }
-
- status = purple_cmd_do_command(conv, cmdline, mark ? mark : markup,
- error ? error : &err);
-
- g_free(mark);
- g_free(err);
-
- return (status == PURPLE_CMD_STATUS_OK);
-}
-
-gssize
-purple_conversation_get_max_message_size(PurpleConversation *conv) {
- PurpleProtocol *protocol;
-
- g_return_val_if_fail(PURPLE_IS_CONVERSATION(conv), 0);
-
- protocol = purple_connection_get_protocol(
- purple_conversation_get_connection(conv));
-
- g_return_val_if_fail(PURPLE_IS_PROTOCOL(protocol), 0);
-
- return purple_protocol_client_get_max_message_size(PURPLE_PROTOCOL_CLIENT(protocol), conv);
-}
--- a/libpurple/purpleconversation.h Thu Nov 24 00:23:08 2022 -0600
+++ b/libpurple/purpleconversation.h Fri Nov 25 22:57:19 2022 -0600
@@ -362,32 +362,6 @@
GList * purple_conversation_get_extended_menu(PurpleConversation *conv);
/**
- * purple_conversation_do_command:
- * @conv: The conversation.
- * @cmdline: The entire command including the arguments.
- * @markup: %NULL, or the formatted command line.
- * @error: If the command failed errormsg is filled in with the appropriate error
- * message, if not %NULL. It must be freed by the caller with g_free().
- *
- * Perform a command in a conversation. Similar to purple_cmd_do_command().
- *
- * Returns: %TRUE if the command was executed successfully, %FALSE otherwise.
- */
-gboolean purple_conversation_do_command(PurpleConversation *conv, const gchar *cmdline, const gchar *markup, gchar **error);
-
-/**
- * purple_conversation_get_max_message_size:
- * @conv: The conversation to query.
- *
- * Gets the maximum message size in bytes for the conversation.
- *
- * See #PurpleProtocolClientInterface's <literal>get_max_message_size</literal>.
- *
- * Returns: Maximum message size, 0 if unspecified, -1 for infinite.
- */
-gssize purple_conversation_get_max_message_size(PurpleConversation *conv);
-
-/**
* purple_conversation_present_error:
* @who: The user this error is about
* @account: The account this error is on