Remove unnecessary test code 73/192073/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Mon, 29 Oct 2018 01:21:55 +0000 (10:21 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Tue, 30 Oct 2018 02:35:13 +0000 (11:35 +0900)
Change-Id: I3d05c9617944731027b9fb69d6c27a5ab263603c

src/multi_assistant_service.c

index 9b0ce1f15f61dff59dfe513165cd8143a6afc29a..aff0544320c38c401410c3ae66040e1c688c23f8 100644 (file)
@@ -323,18 +323,6 @@ int mas_ui_client_change_assistant(const char* appid)
                return -1;
        }
 
-       /* We are going to terminate existing clients for testing purpose */
-       int pid = mas_get_current_client_pid();
-       if (pid != -1) {
-               ma_client_s *client = ma_client_find_by_pid(pid);
-               if (client && strncmp(appid, client->appid, MAX_APPID_LEN) != 0) {
-                       int ret = aul_terminate_pid(pid);
-                       if (ret != AUL_R_OK) {
-                               MAS_LOGW("aul_terminate_pid for pid %d returned %d", pid, ret);
-                       }
-               }
-       }
-
        mas_set_current_client_by_appid(appid);
        if (mas_get_client_pid_by_appid(appid) != -1) {
                MAS_LOGD("MA Client with appid %s exists, requesting speech data", (appid ? appid : "NULL"));
@@ -677,14 +665,6 @@ int mas_launch_client_by_appid(const char *appid)
                return -1;
        }
 
-       /* These extra data key/value should be defined somewhere in multi-assistant framework */
-       ret = app_control_add_extra_data(app_control, "request_speech_data", "true");
-       if (APP_CONTROL_ERROR_NONE != ret) {
-               MAS_LOGW("app_control_add_extra_data returned %08x", ret);
-               app_control_destroy(app_control);
-               return -1;
-       }
-
        ret = app_control_set_app_id(app_control, appid);
        if (APP_CONTROL_ERROR_NONE != ret) {
                MAS_LOGW("app_control_set_app_id returned %08x", ret);