diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2016-09-06 13:48:22 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-10-26 14:59:43 +0200 |
commit | 38c24b2bdfe4018d7864078226cbd70cd45d62d2 (patch) | |
tree | b4e99f37c0eb97f44b2be8bf0a07adfc38e22f79 /src/qmicli | |
parent | cb0f12a10ee309521c74a672406501aa95e360f1 (diff) | |
download | external_libqmi-38c24b2bdfe4018d7864078226cbd70cd45d62d2.zip external_libqmi-38c24b2bdfe4018d7864078226cbd70cd45d62d2.tar.gz external_libqmi-38c24b2bdfe4018d7864078226cbd70cd45d62d2.tar.bz2 |
qmicli: remove unused helpers
Diffstat (limited to 'src/qmicli')
-rw-r--r-- | src/qmicli/qmicli-helpers.c | 46 | ||||
-rw-r--r-- | src/qmicli/qmicli-helpers.h | 4 |
2 files changed, 0 insertions, 50 deletions
diff --git a/src/qmicli/qmicli-helpers.c b/src/qmicli/qmicli-helpers.c index ec72909..d1bc3ca 100644 --- a/src/qmicli/qmicli-helpers.c +++ b/src/qmicli/qmicli-helpers.c @@ -576,52 +576,6 @@ qmicli_read_uint_from_string (const gchar *str, return FALSE; } -gboolean -qmicli_read_uint16_from_string (const gchar *str, - guint16 *out) -{ - gulong num; - - if (!str || !str[0]) - return FALSE; - - for (num = 0; str[num]; num++) { - if (!g_ascii_isdigit (str[num])) - return FALSE; - } - - errno = 0; - num = strtoul (str, NULL, 10); - if (!errno && num <= G_MAXUINT16) { - *out = (guint16)num; - return TRUE; - } - return FALSE; -} - -gboolean -qmicli_read_uint8_from_string (const gchar *str, - guint8 *out) -{ - gulong num; - - if (!str || !str[0]) - return FALSE; - - for (num = 0; str[num]; num++) { - if (!g_ascii_isdigit (str[num])) - return FALSE; - } - - errno = 0; - num = strtoul (str, NULL, 10); - if (!errno && num <= G_MAXUINT8) { - *out = (guint8)num; - return TRUE; - } - return FALSE; -} - gchar * qmicli_get_supported_messages_list (const guint8 *data, gsize len) diff --git a/src/qmicli/qmicli-helpers.h b/src/qmicli/qmicli-helpers.h index 0bf9e76..f5cf1ff 100644 --- a/src/qmicli/qmicli-helpers.h +++ b/src/qmicli/qmicli-helpers.h @@ -69,10 +69,6 @@ gboolean qmicli_read_non_empty_string (const gchar *str, gchar **out); gboolean qmicli_read_uint_from_string (const gchar *str, guint *out); -gboolean qmicli_read_uint16_from_string (const gchar *str, - guint16 *out); -gboolean qmicli_read_uint8_from_string (const gchar *str, - guint8 *out); gboolean qmicli_read_yes_no_from_string (const gchar *str, gboolean *out); |