Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7386b46 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

enablePanNative is unused

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ia3748ea015f305fd7d3f98b988767f69a6e75e16
parent d9af109d
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -171,13 +171,6 @@ static void cleanupNative(JNIEnv* env, jobject object) {
  btIf = NULL;
}

static jboolean enablePanNative(JNIEnv* env, jobject object, jint local_role) {
  bt_status_t status = BT_STATUS_FAIL;
  debug("in");
  if (sPanIf) status = sPanIf->enable(local_role);
  debug("out");
  return status == BT_STATUS_SUCCESS ? JNI_TRUE : JNI_FALSE;
}
static jint getPanLocalRoleNative(JNIEnv* env, jobject object) {
  debug("in");
  int local_role = 0;
@@ -235,7 +228,6 @@ static JNINativeMethod sMethods[] = {
    {"initializeNative", "()V", (void*)initializeNative},
    {"cleanupNative", "()V", (void*)cleanupNative},
    {"connectPanNative", "([BII)Z", (void*)connectPanNative},
    {"enablePanNative", "(I)Z", (void*)enablePanNative},
    {"getPanLocalRoleNative", "()I", (void*)getPanLocalRoleNative},
    {"disconnectPanNative", "([B)Z", (void*)disconnectPanNative},
    // TBD cleanup
+0 −2
Original line number Diff line number Diff line
@@ -786,8 +786,6 @@ public class PanService extends ProfileService {

    private native boolean disconnectPanNative(byte[] btAddress);

    private native boolean enablePanNative(int localRole);

    private native int getPanLocalRoleNative();

}