Skip to content

Commit

Permalink
fully remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
sbSteveK committed Jun 14, 2024
1 parent 9d9d835 commit cc6dee5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
4 changes: 0 additions & 4 deletions include/aws/iotdevice/private/secure_tunneling_operations.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ AWS_IOTDEVICE_API void aws_secure_tunnel_operation_complete(
int error_code,
const void *associated_view);

AWS_IOTDEVICE_API void aws_secure_tunnel_operation_assign_stream_id(
struct aws_secure_tunnel_operation *operation,
struct aws_secure_tunnel *secure_tunnel);

AWS_IOTDEVICE_API int32_t
aws_secure_tunnel_operation_get_stream_id(const struct aws_secure_tunnel_operation *operation);

Expand Down
11 changes: 0 additions & 11 deletions source/secure_tunneling_operations.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,6 @@ void aws_secure_tunnel_operation_complete(
(*operation->vtable->aws_secure_tunnel_operation_completion_fn)(operation, error_code, associated_view);
}
}
// STEVE TODO aws_secure_tunnel_operation_assign_stream_id_fn returns an int that is not used.
// Look into where and how it should be used and whether we need to error out or do anything beyond the
// warning that is provided within the function itself.
// void aws_secure_tunnel_operation_assign_stream_id(
// struct aws_secure_tunnel_operation *operation,
// struct aws_secure_tunnel *secure_tunnel) {
// AWS_FATAL_ASSERT(operation->vtable != NULL);
// if (operation->vtable->aws_secure_tunnel_operation_assign_stream_id_fn != NULL) {
// (*operation->vtable->aws_secure_tunnel_operation_assign_stream_id_fn)(operation, secure_tunnel);
// }
// }

static struct aws_secure_tunnel_operation_vtable s_empty_operation_vtable = {
.aws_secure_tunnel_operation_completion_fn = NULL,
Expand Down

0 comments on commit cc6dee5

Please sign in to comment.