Skip to content

Commit

Permalink
remove the other function
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jan 21, 2025
1 parent 9c79839 commit d38128f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions source/credentials_provider_ecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,6 @@ static struct aws_credentials_provider_ecs_user_data *s_aws_credentials_provider
return NULL;
}

static void s_aws_credentials_provider_ecs_user_data_reset_response(
struct aws_credentials_provider_ecs_user_data *ecs_user_data) {
ecs_user_data->current_result.len = 0;
ecs_user_data->status_code = 0;

if (ecs_user_data->request) {
aws_http_message_destroy(ecs_user_data->request);
ecs_user_data->request = NULL;
}
}

static void s_on_retry_ready(struct aws_retry_token *token, int error_code, void *user_data);

Expand Down Expand Up @@ -484,9 +474,6 @@ static void s_ecs_query_task_role_credentials(struct aws_credentials_provider_ec

struct aws_credentials_provider_ecs_impl *impl = ecs_user_data->ecs_provider->impl;

/* "Clear" the result */
s_aws_credentials_provider_ecs_user_data_reset_response(ecs_user_data);

struct aws_byte_cursor uri_cursor = aws_byte_cursor_from_string(impl->path_and_query);
if (s_make_ecs_http_query(ecs_user_data, &uri_cursor) == AWS_OP_ERR) {
s_ecs_finalize_get_credentials_query(ecs_user_data);
Expand Down

0 comments on commit d38128f

Please sign in to comment.