This patch removes node_set_device_key() function, because it is unused. --- mesh/node.c | 5 ----- mesh/node.h | 1 - 2 files changed, 6 deletions(-) diff --git a/mesh/node.c b/mesh/node.c index 6fe70742d..d4be070fa 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -628,11 +628,6 @@ uint16_t node_get_primary(struct mesh_node *node) return node->primary; } -void node_set_device_key(struct mesh_node *node, uint8_t key[16]) -{ - memcpy(node->dev_key, key, 16); -} - const uint8_t *node_get_device_key(struct mesh_node *node) { if (!node) diff --git a/mesh/node.h b/mesh/node.h index a6bc4a2a6..38aea138f 100644 --- a/mesh/node.h +++ b/mesh/node.h @@ -46,7 +46,6 @@ uint16_t node_get_primary(struct mesh_node *node); uint16_t node_get_primary_net_idx(struct mesh_node *node); void node_set_token(struct mesh_node *node, uint8_t token[8]); const uint8_t *node_get_token(struct mesh_node *node); -void node_set_device_key(struct mesh_node *node, uint8_t key[16]); const uint8_t *node_get_device_key(struct mesh_node *node); void node_set_num_elements(struct mesh_node *node, uint8_t num_ele); uint8_t node_get_num_elements(struct mesh_node *node); -- 2.20.1