mesh: Delete unused function
authorInga Stotland <inga.stotland@intel.com>
Wed, 10 Jun 2020 17:11:17 +0000 (10:11 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Fri, 18 Dec 2020 05:40:30 +0000 (11:10 +0530)
This deletes unused function node_is_provisioned()

Change-Id: I5f5b51e411252137fcfc7e3e01f75b6ab979fb0f
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
mesh/node.c
mesh/node.h

index cd3dd78..18c7285 100644 (file)
@@ -614,11 +614,6 @@ bool node_is_provisioner(struct mesh_node *node)
        return node->provisioner;
 }
 
-bool node_is_provisioned(struct mesh_node *node)
-{
-       return (!IS_UNASSIGNED(node->primary));
-}
-
 void node_app_key_delete(struct mesh_node *node, uint16_t net_idx,
                                                        uint16_t app_idx)
 {
index 7a51205..ace1215 100644 (file)
@@ -42,7 +42,6 @@ struct mesh_node *node_find_by_addr(uint16_t addr);
 struct mesh_node *node_find_by_uuid(uint8_t uuid[16]);
 struct mesh_node *node_find_by_token(uint64_t token);
 bool node_is_provisioner(struct mesh_node *node);
-bool node_is_provisioned(struct mesh_node *node);
 void node_app_key_delete(struct mesh_node *node, uint16_t net_idx,
                                                        uint16_t app_idx);
 uint16_t node_get_primary(struct mesh_node *node);