From 44dbe602ebfd9a5eeb95bb6f146780f08b8c62f8 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Fri, 4 Dec 2015 17:14:40 +0100 Subject: [PATCH] Revert "If there is no current vtable, return the first one if exists" This reverts commit 9d71678c2863f723d4c2010ce292c41e09f42f3b. --- coreapi/vtables.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/coreapi/vtables.c b/coreapi/vtables.c index 3611d290a..b01a91f08 100644 --- a/coreapi/vtables.c +++ b/coreapi/vtables.c @@ -38,9 +38,6 @@ void linphone_core_v_table_destroy(LinphoneCoreVTable* table) { } LinphoneCoreVTable *linphone_core_get_current_vtable(LinphoneCore *lc) { - if (lc->current_vtable == NULL && ms_list_size(lc->vtable_refs) > 0) { - return (LinphoneCoreVTable *)ms_list_nth_data(lc->vtable_refs, 0); - } return lc->current_vtable; }