From a325acd6b1ae3376bb0f9f3eb83ce44617115a55 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 18 May 2021 12:07:45 +0200 Subject: [PATCH] libmm-glib: remove unused cmp_allow_roaming() method mm-bearer-properties.c:725:1: warning: 'cmp_allow_roaming' defined but not used [-Wunused-function] cmp_allow_roaming (gboolean a, ^~~~~~~~~~~~~~~~~ --- libmm-glib/mm-bearer-properties.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/libmm-glib/mm-bearer-properties.c b/libmm-glib/mm-bearer-properties.c index c201373e..1864d256 100644 --- a/libmm-glib/mm-bearer-properties.c +++ b/libmm-glib/mm-bearer-properties.c @@ -806,25 +806,6 @@ cmp_allowed_auth (MMBearerAllowedAuth a, return FALSE; } -static gboolean -cmp_allow_roaming (gboolean a, - gboolean a_set, - gboolean b, - gboolean b_set, - MMBearerPropertiesCmpFlags flags) -{ - /* Strict match */ - if (a == b && a_set == b_set) - return TRUE; - /* Additional loose match UNSET == */ - if (flags & MM_BEARER_PROPERTIES_CMP_FLAGS_LOOSE) { - if ((a == MM_BEARER_ALLOWED_AUTH_UNKNOWN && b == MM_BEARER_ALLOWED_AUTH_NONE) || - (b == MM_BEARER_ALLOWED_AUTH_UNKNOWN && a == MM_BEARER_ALLOWED_AUTH_NONE)) - return TRUE; - } - return FALSE; -} - /** * mm_bearer_properties_cmp: (skip) */