From 3a3681509a431f855fbcc50856a2dba7071b0f48 Mon Sep 17 00:00:00 2001 From: Ji-hoon Lee Date: Mon, 29 Oct 2018 10:21:55 +0900 Subject: [PATCH] Remove unnecessary test code Change-Id: I3d05c9617944731027b9fb69d6c27a5ab263603c --- src/multi_assistant_service.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/multi_assistant_service.c b/src/multi_assistant_service.c index 9b0ce1f..aff0544 100644 --- a/src/multi_assistant_service.c +++ b/src/multi_assistant_service.c @@ -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); -- 2.34.1