From a37df19dbf240949b6eebdce4e17d018a0d70cf6 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Sat, 17 Sep 2022 09:16:08 +0300 Subject: [PATCH] Removed unused API function --- app/src/main/cpp/baresip.c | 6 ------ app/src/main/kotlin/com/tutpro/baresip/Call.kt | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/src/main/cpp/baresip.c b/app/src/main/cpp/baresip.c index bf981b39..6fc61029 100644 --- a/app/src/main/cpp/baresip.c +++ b/app/src/main/cpp/baresip.c @@ -1248,12 +1248,6 @@ Java_com_tutpro_baresip_Api_call_1stats(JNIEnv *env, jobject thiz, jlong call, j return (*env)->NewStringUTF(env, stats_buf); } -JNIEXPORT jboolean JNICALL -Java_com_tutpro_baresip_Api_call_1has_1video(JNIEnv *env, jobject thiz, jlong call) -{ - return call_has_video((struct call *)call) ? true : false; -} - JNIEXPORT jint JNICALL Java_com_tutpro_baresip_Api_call_1state(JNIEnv *env, jobject thiz, jlong call) { diff --git a/app/src/main/kotlin/com/tutpro/baresip/Call.kt b/app/src/main/kotlin/com/tutpro/baresip/Call.kt index 0b2e01a5..64fd2efb 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/Call.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/Call.kt @@ -71,7 +71,7 @@ class Call(val callp: Long, val ua: UserAgent, val peerUri: String, val dir: Str } fun state(): Int { - return Api.call_state(callp); + return Api.call_state(callp) } fun audioCodecs(): String {