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,
   ^~~~~~~~~~~~~~~~~
This commit is contained in:
Aleksander Morgado
2021-05-18 12:07:45 +02:00
parent 268cab885b
commit a325acd6b1

View File

@@ -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)
*/