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

Commit 935e6111 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "enablePanNative is unused" am: 4711999b

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Bluetooth/+/1409407

Change-Id: I1fbbfa8e0faa4cea0fc410d9d0656e24ea27115c
parents 820ce795 4711999b
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
@@ -792,8 +792,6 @@ public class PanService extends ProfileService {

    private native boolean disconnectPanNative(byte[] btAddress);

    private native boolean enablePanNative(int localRole);

    private native int getPanLocalRoleNative();

}