summaryrefslogtreecommitdiff
path: root/src/mm-modem-helpers.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-04-04 11:18:28 +0200
committerAleksander Morgado <aleksander@aleksander.es>2020-04-08 16:35:09 +0200
commit78cad902ef342d6da628f26e1282782aa8361316 (patch)
tree1ad8e46217e316363aa44d9d5d08c053c07b5fe6 /src/mm-modem-helpers.c
parent5b1b33a894e3677dd633f032d5d9a07931096719 (diff)
downloadModemManager-78cad902ef342d6da628f26e1282782aa8361316.tar.gz
modem-helpers: remove unused supported capabilities filter
Diffstat (limited to 'src/mm-modem-helpers.c')
-rw-r--r--src/mm-modem-helpers.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c
index 51577a90d..67a5f0a6e 100644
--- a/src/mm-modem-helpers.c
+++ b/src/mm-modem-helpers.c
@@ -470,34 +470,6 @@ mm_filter_supported_modes (const GArray *all,
/*****************************************************************************/
-GArray *
-mm_filter_supported_capabilities (MMModemCapability all,
- const GArray *supported_combinations)
-{
- guint i;
- GArray *filtered_combinations;
-
- g_return_val_if_fail (all != MM_MODEM_CAPABILITY_NONE, NULL);
- g_return_val_if_fail (supported_combinations != NULL, NULL);
-
- /* We will filter out all combinations which have modes not listed in 'all' */
- filtered_combinations = g_array_sized_new (FALSE, FALSE, sizeof (MMModemCapability), supported_combinations->len);
- for (i = 0; i < supported_combinations->len; i++) {
- MMModemCapability capability;
-
- capability = g_array_index (supported_combinations, MMModemCapability, i);
- if (!(capability & ~all))
- g_array_append_val (filtered_combinations, capability);
- }
-
- if (filtered_combinations->len == 0)
- mm_warn ("All supported capability combinations were filtered out.");
-
- return filtered_combinations;
-}
-
-/*****************************************************************************/
-
static const gchar bcd_chars[] = "0123456789\0\0\0\0\0\0";
gchar *