iface-modem-voice: all methods available even if not enabled

This commit is contained in:
Aleksander Morgado
2019-10-17 08:31:46 +00:00
parent ed3a1264af
commit 7971844318
2 changed files with 10 additions and 142 deletions
-5
View File
@@ -168,11 +168,6 @@ context_free (Context *ctx)
static void
ensure_modem_voice (void)
{
if (mm_modem_get_state (mm_object_peek_modem (ctx->object)) < MM_MODEM_STATE_ENABLED) {
g_printerr ("error: modem not enabled yet\n");
exit (EXIT_FAILURE);
}
if (!ctx->modem_voice) {
g_printerr ("error: modem has no voice capabilities\n");
exit (EXIT_FAILURE);