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

Commit 25fd0f62 authored by Hui Peng's avatar Hui Peng
Browse files

[Invisalign2] remove unused smp_send_init

Bug: 301661850
Test: mma packages/modules/Bluetooth
Change-Id: I7d91325c31e81ed2970171772177fd774a6174d9
parent 7ee705f8
Loading
Loading
Loading
Loading
+0 −9
Original line number Original line Diff line number Diff line
@@ -315,15 +315,6 @@ void smp_send_confirm(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) {
  smp_send_cmd(SMP_OPCODE_CONFIRM, p_cb);
  smp_send_cmd(SMP_OPCODE_CONFIRM, p_cb);
}
}


/*******************************************************************************
 * Function     smp_send_init
 * Description  process pairing initializer to peripheral device
 ******************************************************************************/
void smp_send_init(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) {
  LOG_VERBOSE("addr:%s", ADDRESS_TO_LOGGABLE_CSTR(p_cb->pairing_bda));
  smp_send_cmd(SMP_OPCODE_INIT, p_cb);
}

/*******************************************************************************
/*******************************************************************************
 * Function     smp_send_rand
 * Function     smp_send_rand
 * Description  send pairing random to the peer
 * Description  send pairing random to the peer
+0 −2
Original line number Original line Diff line number Diff line
@@ -64,8 +64,6 @@ typedef enum : uint8_t {
#define SMP_WAIT_FOR_RSP_TIMEOUT_MS (30 * 1000)
#define SMP_WAIT_FOR_RSP_TIMEOUT_MS (30 * 1000)
#define SMP_DELAYED_AUTH_TIMEOUT_MS 500
#define SMP_DELAYED_AUTH_TIMEOUT_MS 500


#define SMP_OPCODE_INIT 0x04

/* SMP command code */
/* SMP command code */
typedef enum : uint8_t {
typedef enum : uint8_t {
  SMP_OPCODE_PAIRING_REQ = 0x01,
  SMP_OPCODE_PAIRING_REQ = 0x01,
+0 −5
Original line number Original line Diff line number Diff line
@@ -42,7 +42,6 @@ struct smp_send_pair_fail smp_send_pair_fail;
struct smp_send_pair_req smp_send_pair_req;
struct smp_send_pair_req smp_send_pair_req;
struct smp_send_pair_rsp smp_send_pair_rsp;
struct smp_send_pair_rsp smp_send_pair_rsp;
struct smp_send_confirm smp_send_confirm;
struct smp_send_confirm smp_send_confirm;
struct smp_send_init smp_send_init;
struct smp_send_rand smp_send_rand;
struct smp_send_rand smp_send_rand;
struct smp_send_pair_public_key smp_send_pair_public_key;
struct smp_send_pair_public_key smp_send_pair_public_key;
struct smp_send_commitment smp_send_commitment;
struct smp_send_commitment smp_send_commitment;
@@ -138,10 +137,6 @@ void smp_send_confirm(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) {
  inc_func_call_count(__func__);
  inc_func_call_count(__func__);
  test::mock::stack_smp_act::smp_send_confirm(p_cb, p_data);
  test::mock::stack_smp_act::smp_send_confirm(p_cb, p_data);
}
}
void smp_send_init(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) {
  inc_func_call_count(__func__);
  test::mock::stack_smp_act::smp_send_init(p_cb, p_data);
}
void smp_send_rand(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) {
void smp_send_rand(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) {
  inc_func_call_count(__func__);
  inc_func_call_count(__func__);
  test::mock::stack_smp_act::smp_send_rand(p_cb, p_data);
  test::mock::stack_smp_act::smp_send_rand(p_cb, p_data);
+0 −9
Original line number Original line Diff line number Diff line
@@ -79,15 +79,6 @@ struct smp_send_confirm {
  void operator()(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { body(p_cb, p_data); };
  void operator()(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { body(p_cb, p_data); };
};
};
extern struct smp_send_confirm smp_send_confirm;
extern struct smp_send_confirm smp_send_confirm;
// Name: smp_send_init
// Params: tSMP_CB* p_cb, tSMP_INT_DATA* p_data
// Returns: void
struct smp_send_init {
  std::function<void(tSMP_CB* p_cb, tSMP_INT_DATA* p_data)> body{
      [](tSMP_CB* /* p_cb */, tSMP_INT_DATA* /* p_data */) {}};
  void operator()(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { body(p_cb, p_data); };
};
extern struct smp_send_init smp_send_init;
// Name: smp_send_rand
// Name: smp_send_rand
// Params: tSMP_CB* p_cb, tSMP_INT_DATA* p_data
// Params: tSMP_CB* p_cb, tSMP_INT_DATA* p_data
// Returns: void
// Returns: void