You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2017/04/10 11:47:36 UTC
[44/50] incubator-mynewt-core git commit: nimble/l2cap: Remove some
dead code
nimble/l2cap: Remove some dead code
Those functions are not used anymore.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/fd6c58a8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/fd6c58a8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/fd6c58a8
Branch: refs/heads/master
Commit: fd6c58a82396a6b59772b9781ecfe25d4b39b2b9
Parents: 7674f26
Author: Szymon Janc <sz...@codecoup.pl>
Authored: Fri Mar 24 15:50:08 2017 +0100
Committer: Szymon Janc <sz...@codecoup.pl>
Committed: Mon Apr 10 11:31:33 2017 +0200
----------------------------------------------------------------------
net/nimble/host/src/ble_l2cap_sig_cmd.c | 8 --------
net/nimble/host/src/ble_l2cap_sig_priv.h | 4 ----
2 files changed, 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/fd6c58a8/net/nimble/host/src/ble_l2cap_sig_cmd.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_l2cap_sig_cmd.c b/net/nimble/host/src/ble_l2cap_sig_cmd.c
index 4381be5..ae8b102 100644
--- a/net/nimble/host/src/ble_l2cap_sig_cmd.c
+++ b/net/nimble/host/src/ble_l2cap_sig_cmd.c
@@ -53,14 +53,6 @@ ble_l2cap_sig_hdr_parse(void *payload, uint16_t len,
ble_l2cap_sig_hdr_swap(dst, payload);
}
-void
-ble_l2cap_sig_hdr_write(void *payload, uint16_t len,
- struct ble_l2cap_sig_hdr *src)
-{
- BLE_HS_DBG_ASSERT(len >= BLE_L2CAP_SIG_HDR_SZ);
- ble_l2cap_sig_hdr_swap(payload, src);
-}
-
int
ble_l2cap_sig_reject_tx(uint16_t conn_handle, uint8_t id, uint16_t reason,
void *data, int data_len)
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/fd6c58a8/net/nimble/host/src/ble_l2cap_sig_priv.h
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_l2cap_sig_priv.h b/net/nimble/host/src/ble_l2cap_sig_priv.h
index 49d096c..3a23b92 100644
--- a/net/nimble/host/src/ble_l2cap_sig_priv.h
+++ b/net/nimble/host/src/ble_l2cap_sig_priv.h
@@ -89,12 +89,8 @@ struct ble_l2cap_sig_le_credits {
uint16_t credits;
} __attribute__((packed));
-int ble_l2cap_sig_init_cmd(uint8_t op, uint8_t id, uint8_t payload_len,
- struct os_mbuf **out_om, void **out_payload_buf);
void ble_l2cap_sig_hdr_parse(void *payload, uint16_t len,
struct ble_l2cap_sig_hdr *hdr);
-void ble_l2cap_sig_hdr_write(void *payload, uint16_t len,
- struct ble_l2cap_sig_hdr *hdr);
int ble_l2cap_sig_reject_tx(uint16_t conn_handle,
uint8_t id, uint16_t reason,
void *data, int data_len);