Microsoft Azure IoTHub client MQTT transport

Dependents:   STM32F746_iothub_client_sample_mqtt FXOS8700CQ_To_Azure_IoT f767zi_mqtt FXOS8700CQ_To_Azure_IoT ... more

Revision:
36:3b9944257dd5
Parent:
25:a35763780a87
Child:
39:6231984e0179
--- a/iothub_client_retry_control.c	Thu Feb 15 11:34:49 2018 -0800
+++ b/iothub_client_retry_control.c	Mon Mar 05 17:40:20 2018 -0800
@@ -32,44 +32,6 @@
 
 // ========== Helper Functions ========== //
 
-static int evaluate_retry_action_fixed_interval(RETRY_CONTROL_INSTANCE* retry_control, RETRY_ACTION* retry_action)
-{
-	int result;
-
-	time_t current_time;
-
-	if ((current_time = get_time(NULL)) == INDEFINITE_TIME)
-	{
-		LogError("Cannot evaluate if should retry (get_time failed)");
-		result = __FAILURE__;
-	}
-	else
-	{
-		if (retry_control->max_retry_time_in_secs > 0 &&
-			get_difftime(current_time, retry_control->last_retry_time) >= retry_control->max_retry_time_in_secs)
-		{
-			*retry_action = RETRY_ACTION_STOP_RETRYING;
-		}
-		else
-		{
-			if (get_difftime(current_time, retry_control->last_retry_time) >= retry_control->current_wait_time_in_secs)
-			{
-				*retry_action = RETRY_ACTION_RETRY_NOW;
-				retry_control->last_retry_time = current_time;
-			}
-			else
-			{
-				*retry_action = RETRY_ACTION_RETRY_LATER;
-			}
-		}
-
-		result = RESULT_OK;
-	}
-
-	return result;
-}
-
-
 // ---------- Set/Retrieve Options Helpers ----------//
 
 static void* retry_control_clone_option(const char* name, const void* value)