Remove unused codes 25/272025/2
authorwn.jang <wn.jang@samsung.com>
Mon, 7 Mar 2022 03:12:27 +0000 (12:12 +0900)
committerwn.jang <wn.jang@samsung.com>
Mon, 7 Mar 2022 03:15:15 +0000 (12:15 +0900)
UpdateEvent has never used until now.
But this should be supported for notifying update state.
Therefore, I leave a TODO comment.

Change-Id: I4ef0ea99785b51c23cf9c93363d93a65c67ca0a5

server/vce.c

index 5d71383..fae0fbb 100644 (file)
@@ -384,16 +384,17 @@ int vce_set_private_data(const char* key, const char* data)
                return VCE_ERROR_INVALID_PARAMETER;
        }
 
-       if (!strncmp(key, "UpdateEventStart", strlen(key)))
-               ret = vce_send_update_status(VCE_UPDATE_EVENT_START, NULL);
-       else if (!strncmp(data, "UpdateEventComplete", strlen(key)))
-               ret = vce_send_update_status(VCE_UPDATE_EVENT_FINISH, NULL);
-       else if (!strncmp(data, "UpdateEventFail", strlen(key)))
-               ret = vce_send_update_status(VCE_UPDATE_EVENT_FAIL, data);
-       if (0 != ret) {
-               SLOG(LOG_ERROR, TAG_VCD, "[ERROR] Fail to send update status, event(%s), msg(%s): ret(%d)", key, data, ret);
-               return ret;
-       }
+       // TODO: Shoud be added updateEvent to client, need to ACR for update state.
+       // if (!strncmp(key, "UpdateEventStart", strlen(key)))
+       //      ret = vce_send_update_status(VCE_UPDATE_EVENT_START, NULL);
+       // else if (!strncmp(key, "UpdateEventComplete", strlen(key)))
+       //      ret = vce_send_update_status(VCE_UPDATE_EVENT_FINISH, NULL);
+       // else if (!strncmp(key, "UpdateEventFail", strlen(key)))
+       //      ret = vce_send_update_status(VCE_UPDATE_EVENT_FAIL, data);
+       // if (0 != ret) {
+       //      SLOG(LOG_ERROR, TAG_VCD, "[ERROR] Fail to send update status, event(%s), msg(%s): ret(%d)", key, data, ret);
+       //      return ret;
+       // }
 
        ret = vcd_set_private_data(key, data);
        if (0 != ret) {