Remove unused parameter 'before_state' 67/259867/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Wed, 16 Jun 2021 05:53:43 +0000 (14:53 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Wed, 16 Jun 2021 05:53:43 +0000 (14:53 +0900)
Change-Id: I17ee21cbca9c558fb8ec2d71686c135913914a61
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
client/tts_core.c
client/tts_core.h
client/tts_dbus.c
client/tts_tidl.c

index 026b2d7..185a8c7 100644 (file)
@@ -769,7 +769,7 @@ int tts_core_notify_state_changed(tts_client_s* client, tts_state_e current_stat
        return TTS_ERROR_NONE;
 }
 
-int tts_core_notify_state_changed_async(tts_client_s* client, tts_state_e before_state, tts_state_e current_state)
+int tts_core_notify_state_changed_async(tts_client_s* client, tts_state_e current_state)
 {
        if (false == tts_client_is_valid_client(client)) {
                SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] Handle is not valid.");
@@ -1029,7 +1029,7 @@ int tts_core_receive_hello(int uid, int ret, int credential_needed)
                }
        }
 
-       tts_core_notify_state_changed_async(client, current_state, TTS_STATE_READY);
+       tts_core_notify_state_changed_async(client, TTS_STATE_READY);
 
        SLOG(LOG_DEBUG, TAG_TTSC, "@@@");
        return TTS_ERROR_NONE;
index 33a30a5..fe9adce 100644 (file)
@@ -23,7 +23,7 @@ extern "C" {
 
 // common function
 int tts_core_notify_state_changed(tts_client_s* client, tts_state_e current_state);
-int tts_core_notify_state_changed_async(tts_client_s* client, tts_state_e before_state, tts_state_e current_state);
+int tts_core_notify_state_changed_async(tts_client_s* client, tts_state_e current_state);
 int tts_core_notify_utt_started(tts_client_s* client, int utt_id);
 int tts_core_notify_utt_completeted(tts_client_s* client, int utt_id);
 int tts_core_notify_error_async(tts_client_s* client, tts_error_e reason, int utt_id, const char* err_msg);
index 9b0a21b..4613acf 100644 (file)
@@ -50,7 +50,7 @@ static int __tts_cb_set_state(int uid, int state)
                return 0;
        }
 
-       tts_core_notify_state_changed_async(client, current_state, state_from_daemon);
+       tts_core_notify_state_changed_async(client, state_from_daemon);
        return 0;
 }
 
index e20f327..b0ed3ac 100644 (file)
@@ -35,7 +35,7 @@ static int __tts_cb_set_state(int uid, int state)
                return 0;
        }
 
-       tts_core_notify_state_changed_async(client, current_state, state_from_daemon);
+       tts_core_notify_state_changed_async(client, state_from_daemon);
        return 0;
 }