From 35099507d7695984eb7960a6a5a89953d110f240 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Sat, 27 May 2023 12:10:09 +0300 Subject: [PATCH] Removed unused reload_config() API function --- app/src/main/cpp/baresip.c | 14 -------------- app/src/main/kotlin/com/tutpro/baresip/Api.kt | 1 - 2 files changed, 15 deletions(-) diff --git a/app/src/main/cpp/baresip.c b/app/src/main/cpp/baresip.c index 2f3a6926..ec545634 100644 --- a/app/src/main/cpp/baresip.c +++ b/app/src/main/cpp/baresip.c @@ -1357,20 +1357,6 @@ JNIEXPORT void JNICALL Java_com_tutpro_baresip_Api_call_1destroy( re_thread_leave(); } -JNIEXPORT jint JNICALL Java_com_tutpro_baresip_Api_reload_1config(JNIEnv *env, jobject thiz) -{ - int err; - re_thread_enter(); - err = conf_configure(); - re_thread_leave(); - if (err) { - LOGE("failed to reload config %d\n", err); - } else { - LOGD("config reload succeeded"); - } - return err; -} - JNIEXPORT jint JNICALL Java_com_tutpro_baresip_Api_cmd_1exec( JNIEnv *env, jobject thiz, jstring javaCmd) { diff --git a/app/src/main/kotlin/com/tutpro/baresip/Api.kt b/app/src/main/kotlin/com/tutpro/baresip/Api.kt index 9084cc36..837e92c8 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/Api.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/Api.kt @@ -103,7 +103,6 @@ object Api { external fun cmd_exec(cmd: String): Int - external fun reload_config(): Int external fun module_load(module: String): Int external fun module_unload(module: String)