From 9d7670c4006a6e2481041397d321ceeae1ab99bb Mon Sep 17 00:00:00 2001 From: a Date: Fri, 24 May 2024 22:43:52 -0400 Subject: [PATCH] Remove unused apiGetProviderVersion, we just use gradle BuildConfig this is never called in tor-android --- src/feature/api/org_torproject_jni_TorService.c | 8 -------- src/feature/api/org_torproject_jni_TorService.h | 9 --------- 2 files changed, 17 deletions(-) diff --git a/src/feature/api/org_torproject_jni_TorService.c b/src/feature/api/org_torproject_jni_TorService.c index ff587442581..b940615c4a8 100644 --- a/src/feature/api/org_torproject_jni_TorService.c +++ b/src/feature/api/org_torproject_jni_TorService.c @@ -247,14 +247,6 @@ Java_org_torproject_jni_TorService_mainConfigurationFree tor_main_configuration_free(cfg); } -JNIEXPORT jstring JNICALL -Java_org_torproject_jni_TorService_apiGetProviderVersion -(JNIEnv *env, jobject _ignore) -{ - UNUSED(_ignore); - return (*env)->NewStringUTF(env, tor_api_get_provider_version()); -} - JNIEXPORT jint JNICALL Java_org_torproject_jni_TorService_runMain (JNIEnv *env, jobject thisObj) diff --git a/src/feature/api/org_torproject_jni_TorService.h b/src/feature/api/org_torproject_jni_TorService.h index 4ea0e5f9e20..ddd7cb429ac 100644 --- a/src/feature/api/org_torproject_jni_TorService.h +++ b/src/feature/api/org_torproject_jni_TorService.h @@ -44,15 +44,6 @@ JNIEXPORT void JNICALL Java_org_torproject_jni_TorService_mainConfigurationFree (JNIEnv *, jobject); -/* - * Class: org_torproject_jni_TorService - * Method: apiGetProviderVersion - * Signature: ()Ljava/lang/String; - */ -JNIEXPORT jstring JNICALL -Java_org_torproject_jni_TorService_apiGetProviderVersion -(JNIEnv *, jobject); - /* * Class: org_torproject_jni_TorService * Method: runMain