Skip to content

Commit 31842cc

Browse files
Johan Hedbergnashif
authored andcommitted
Bluetooth: Mesh: Remove unused code
The bt_mesh_trans_resend() function had no users, and had in fact not even a prototype in a header file. Just remove it. Signed-off-by: Johan Hedberg <[email protected]>
1 parent 4ec14cc commit 31842cc

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

subsys/bluetooth/host/mesh/transport.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -524,25 +524,6 @@ int bt_mesh_trans_send(struct bt_mesh_net_tx *tx, struct net_buf_simple *msg,
524524
return err;
525525
}
526526

527-
int bt_mesh_trans_resend(struct bt_mesh_net_tx *tx, struct net_buf_simple *msg,
528-
const struct bt_mesh_send_cb *cb, void *cb_data)
529-
{
530-
struct net_buf_simple_state state;
531-
int err;
532-
533-
net_buf_simple_save(msg, &state);
534-
535-
if (tx->ctx->send_rel || msg->len > 15) {
536-
err = send_seg(tx, msg, cb, cb_data);
537-
} else {
538-
err = send_unseg(tx, msg, cb, cb_data);
539-
}
540-
541-
net_buf_simple_restore(msg, &state);
542-
543-
return err;
544-
}
545-
546527
static void update_rpl(struct bt_mesh_rpl *rpl, struct bt_mesh_net_rx *rx)
547528
{
548529
rpl->src = rx->ctx.addr;

0 commit comments

Comments
 (0)