From ea2508e6063bcafaae5d667a30f90637b20c3532 Mon Sep 17 00:00:00 2001 From: Jaehong Jo Date: Thu, 14 Jun 2018 23:00:14 +0900 Subject: [PATCH] Deleted error cases that does not occur Below case did not occur in our API CI_TOKEN_VALIDATION_FAILED = 4000002, CI_SAMSUNG_ACCOUNT_AUTHORIZATION_FAILED = 4010001, CI_SAMSUNG_ACCOUNT_UNAUTHORIZED_TOKEN = 4010201, CI_USER_NOT_FOUND = 4040100, Change-Id: I7510b78ed1c4720e06131395482ac39f5ecec1a2 Signed-off-by: Jaehong Reviewed-on: https://gerrit.iotivity.org/gerrit/25823 Tested-by: IoTivity Jenkins Reviewed-by: Uze Choi --- apps/st_app/st_cloud_manager.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/apps/st_app/st_cloud_manager.c b/apps/st_app/st_cloud_manager.c index 0d8e451cf..29cbb7b82 100644 --- a/apps/st_app/st_cloud_manager.c +++ b/apps/st_app/st_cloud_manager.c @@ -51,12 +51,8 @@ typedef struct st_cloud_context } st_cloud_context_t; typedef enum { - CI_TOKEN_VALIDATION_FAILED = 4000002, CI_TOKEN_EXPIRED = 4000004, - CI_SAMSUNG_ACCOUNT_AUTHORIZATION_FAILED = 4010001, - CI_SAMSUNG_ACCOUNT_UNAUTHORIZED_TOKEN = 4010201, CI_FORBIDDEN = 4030003, - CI_USER_NOT_FOUND = 4040100, CI_DEVICE_NOT_FOUND = 4040200, CI_INTERNAL_SERVER_ERROR = 5000000 } ci_error_code_t; @@ -236,7 +232,6 @@ error_handler(oc_client_response_t *data, oc_trigger_t callback) st_print_log("[Cloud_Manager] ci message : %s (%d)\n", message, code); switch (code) { - case CI_TOKEN_VALIDATION_FAILED: case CI_TOKEN_EXPIRED: oc_remove_delayed_callback(context, callback); context->retry_count = 0; @@ -244,10 +239,7 @@ error_handler(oc_client_response_t *data, oc_trigger_t callback) oc_set_delayed_callback(context, refresh_token, session_timeout[context->retry_count]); return; - case CI_SAMSUNG_ACCOUNT_AUTHORIZATION_FAILED: - case CI_SAMSUNG_ACCOUNT_UNAUTHORIZED_TOKEN: case CI_FORBIDDEN: - case CI_USER_NOT_FOUND: oc_remove_delayed_callback(context, callback); context->retry_count = 0; context->cloud_manager_status = CLOUD_MANAGER_RE_CONNECTING; -- GitLab