A small memory footprint AMQP implimentation
Dependents: iothub_client_sample_amqp remote_monitoring simplesample_amqp
Diff: session.c
- Revision:
- 18:a922a4a30a82
- Parent:
- 17:923575db8b2d
- Child:
- 19:000ab4e6a2c1
--- a/session.c Tue Jan 24 15:23:52 2017 -0800 +++ b/session.c Fri Feb 10 17:00:55 2017 -0800 @@ -287,31 +287,6 @@ return result; } -static LINK_ENDPOINT_INSTANCE* find_link_endpoint_by_output_handle(SESSION_INSTANCE* session, handle output_handle) -{ - uint32_t i; - LINK_ENDPOINT_INSTANCE* result; - - for (i = 0; i < session->link_endpoint_count; i++) - { - if (session->link_endpoints[i]->output_handle == output_handle) - { - break; - } - } - - if (i == session->link_endpoint_count) - { - result = NULL; - } - else - { - result = session->link_endpoints[i]; - } - - return result; -} - static void on_connection_state_changed(void* context, CONNECTION_STATE new_connection_state, CONNECTION_STATE previous_connection_state) { SESSION_INSTANCE* session_instance = (SESSION_INSTANCE*)context;