Remove duplicate code and unvaluable function 69/259869/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Wed, 16 Jun 2021 07:08:47 +0000 (16:08 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Wed, 16 Jun 2021 07:08:47 +0000 (16:08 +0900)
commitd16fa2f644c657181abff6b48608a413d8e8993c
treee87c7965ab0347d3635da47236c781ede1b3b53a
parent4a2479365465cefdb9044c91288cd75d7d675c00
Remove duplicate code and unvaluable function

This patch removes duplicated code and unvaluble function to enhance readbility.
Using 'tts_core_check_screen_reader()' remove and simplify the condition check code.
And also, 'tts_core_set_mode()' just call 'tts_client_set_mode()', this patch makes 'tts_set_mode()'
calls 'tts_client_set_mode()' directly and removes 'tts_core_set_mode()'.

Change-Id: Ia1338770fe243bd7b99cab23089ce17547bc6325
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
client/tts.c
client/tts_core.c
client/tts_core.h