aboutsummaryrefslogtreecommitdiff
path: root/src/mm-charsets.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-02-14 09:09:45 +0100
committerAleksander Morgado <aleksander@aleksander.es>2021-02-23 11:35:11 +0000
commit0ff3eb7ee0106423519152a68de1621cedf567c8 (patch)
treee09889ace53c7d3a4e011fe9ff463745e272a33c /src/mm-charsets.h
parentab4c31ec0b2c79285e24b9a117ff5e5c21f8fd71 (diff)
charsets: remove take_and_convert methods
These methods worked in a very strict way for some encodings, and in a very very loose way for others. E.g. when converting from hex-encoded UCS-2, we would attempt to convert as much text as we could even if the input string was truly not even close to UCS-2. This kind of "do our best" could make sense when processing e.g. the operator name reported by the modem, as that is some string to show to the user and there may be no strict requirement to have it perfectly fine. But the kind of loose comparison done for UCS-2 doesn't make sense e.g. when converting USSD responses or SMS messages.
Diffstat (limited to 'src/mm-charsets.h')
-rw-r--r--src/mm-charsets.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mm-charsets.h b/src/mm-charsets.h
index 37b39d7e..9cae5ddf 100644
--- a/src/mm-charsets.h
+++ b/src/mm-charsets.h
@@ -57,11 +57,6 @@ guint8 *mm_charset_gsm_pack (const guint8 *src,
guint8 start_offset, /* in bits */
guint32 *out_packed_len);
-gchar *mm_charset_take_and_convert_to_utf8 (gchar *str,
- MMModemCharset charset);
-gchar *mm_utf8_take_and_convert_to_charset (gchar *str,
- MMModemCharset charset);
-
/*****************************************************************************************/
/*