diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-11-22 15:05:56 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-02-23 11:35:11 +0000 |
commit | 8b590721dfdff5c4382dbc3498d92035b2d4ad64 (patch) | |
tree | 0215270cf248ec39e0be4760a5eaf99487f358be /src/mm-charsets.c | |
parent | 38a4a9c842bcb0c87bca7b1a5595556fe2c144fc (diff) |
charsets: don't allow quoting in byte_array_append()
There's no point in adding a quoting option to this method; if the
caller needs the appended string quoted, it should quote it before
passing it to this method.
It was nowhere used anyway.
Diffstat (limited to 'src/mm-charsets.c')
-rw-r--r-- | src/mm-charsets.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mm-charsets.c b/src/mm-charsets.c index acddf0a8..fbbe4855 100644 --- a/src/mm-charsets.c +++ b/src/mm-charsets.c @@ -105,7 +105,6 @@ charset_iconv_from (MMModemCharset charset) gboolean mm_modem_charset_byte_array_append (GByteArray *array, const gchar *utf8, - gboolean quoted, MMModemCharset charset, GError **error) { @@ -126,11 +125,7 @@ mm_modem_charset_byte_array_append (GByteArray *array, return FALSE; } - if (quoted) - g_byte_array_append (array, (const guint8 *) "\"", 1); g_byte_array_append (array, (const guint8 *) converted, written); - if (quoted) - g_byte_array_append (array, (const guint8 *) "\"", 1); return TRUE; } |