diff options
author | Mike Ruprecht <cmaiku@gmail.com> | 2018-11-05 18:57:24 -0600 |
---|---|---|
committer | Mike Ruprecht <cmaiku@gmail.com> | 2018-11-05 18:57:24 -0600 |
commit | f08cc00f45866992778af3c81e7e45db0d5cfe64 (patch) | |
tree | 8e03840b0b295da116532c950adc3ec387136264 /libpurple/network.h | |
parent | 3c7a695ffb7254c1d024568b685b0541c96c67e3 (diff) | |
download | pidgin-f08cc00f45866992778af3c81e7e45db0d5cfe64.tar.gz |
network: Drop unused purple_network_convert_idn_to_ascii()
purple_network_convert_idn_to_ascii() isn't used in tree. GLib has
g_hostname_to_ascii(), which seems to do the same thing. This patch
removes the former in favor of the latter. As a result, libidn is
no longer a direct dependency of libpurple, only the Jabber prpl.
Diffstat (limited to 'libpurple/network.h')
-rw-r--r-- | libpurple/network.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libpurple/network.h b/libpurple/network.h index 8c8f668b71..e567cce6ee 100644 --- a/libpurple/network.h +++ b/libpurple/network.h @@ -301,26 +301,6 @@ const gchar *purple_network_get_turn_ip(void); void purple_network_remove_port_mapping(gint fd); /** - * purple_network_convert_idn_to_ascii: - * @in: The hostname to be converted. - * @out: The output buffer where an allocated string will be returned. - * The caller is responsible for freeing this. - * - * Convert a UTF-8 domain name to ASCII in accordance with the IDNA - * specification. If libpurple is compiled without IDN support, this function - * copies the input into the output buffer. - * - * Because this function is used by DNS resolver child/threads, it uses no - * other libpurple API and is threadsafe. - * - * In general, a buffer of about 512 bytes is the appropriate size to use. - * - * Returns: 0 on success, -1 if the out is NULL, or an error code - * that currently corresponds to the Idna_rc enum in libidn. - */ -int purple_network_convert_idn_to_ascii(const gchar *in, gchar **out); - -/** * purple_network_init: * * Initializes the network subsystem. |