Skip to content

Commit

Permalink
Remove unused structure IOTHUB_REQ_INFO (#2531)
Browse files Browse the repository at this point in the history
* Remove unused structure IOTHUB_REQ_INFO

Addresses #2529

* Fix unit tests
  • Loading branch information
ewertons authored Sep 19, 2023
1 parent e796a74 commit 59b7663
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
15 changes: 0 additions & 15 deletions provisioning_client/src/prov_device_ll_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,6 @@ typedef enum CLIENT_STATE_TAG
CLIENT_STATE_ERROR
} CLIENT_STATE;

typedef struct IOTHUB_REQ_INFO_TAG
{
char* iothub_url;
char* iothub_key;
char* device_id;
} IOTHUB_REQ_INFO;

typedef struct PROV_INSTANCE_INFO_TAG
{
PROV_DEVICE_CLIENT_REGISTER_DEVICE_CALLBACK register_callback;
Expand Down Expand Up @@ -114,8 +107,6 @@ typedef struct PROV_INSTANCE_INFO_TAG

PROV_AUTH_TYPE hsm_type;

IOTHUB_REQ_INFO iothub_info;

CLIENT_STATE prov_state;

size_t auth_attempts_made;
Expand Down Expand Up @@ -709,12 +700,6 @@ static void cleanup_prov_info(PROV_INSTANCE_INFO* prov_info)
}
free(prov_info->registration_id);
prov_info->registration_id = NULL;
free(prov_info->iothub_info.device_id);
prov_info->iothub_info.device_id = NULL;
free(prov_info->iothub_info.iothub_key);
prov_info->iothub_info.iothub_key = NULL;
free(prov_info->iothub_info.iothub_url);
prov_info->iothub_info.iothub_url = NULL;
prov_info->auth_attempts_made = 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,6 @@ BEGIN_TEST_SUITE(prov_device_client_ll_ut)
static void setup_cleanup_prov_info_mocks(void)
{
STRICT_EXPECTED_CALL(gballoc_free(IGNORED_PTR_ARG));
STRICT_EXPECTED_CALL(gballoc_free(IGNORED_PTR_ARG));
STRICT_EXPECTED_CALL(gballoc_free(IGNORED_PTR_ARG));
STRICT_EXPECTED_CALL(gballoc_free(IGNORED_PTR_ARG));
}

static void setup_destroy_prov_info_mocks(void)
Expand Down

0 comments on commit 59b7663

Please sign in to comment.