Remove unnecessary test code
[platform/core/uifw/multi-assistant-service.git] / src / multi_assistant_service.c
index 9b0ce1f..aff0544 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);