aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-09-06 13:48:22 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-10-26 14:59:43 +0200
commit38c24b2bdfe4018d7864078226cbd70cd45d62d2 (patch)
treeb4e99f37c0eb97f44b2be8bf0a07adfc38e22f79
parentcb0f12a10ee309521c74a672406501aa95e360f1 (diff)
qmicli: remove unused helpers
-rw-r--r--src/qmicli/qmicli-helpers.c46
-rw-r--r--src/qmicli/qmicli-helpers.h4
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);