Remove duplicated codes 37/276937/4
authorSuyeon Hwang <stom.hwang@samsung.com>
Tue, 28 Jun 2022 04:46:04 +0000 (13:46 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Wed, 29 Jun 2022 04:42:28 +0000 (13:42 +0900)
commit0d317f691339fbc32709032ea50c047e86daf2f9
treed0c01cd22d290eedb6955c35b7f48186f5ed81b4
parent78bc760b0ba9aec9d98030c37d909ce6cf269084
Remove duplicated codes

- Issue:
The codes for checking preconditions are repeated in every functions. And also,
the codes for clearing list are repeated.

- Solution:
This patch makes new inline functions for simplify the precondtion
checking code. Using theses new functions, we can remove many duplicated
precondition checking code.
And also, this patch makes new function for clearing voice information list.
Through this function, we can remove duplicated list clearing code.

Change-Id: I611c798238b76b3e2d0b50942dc3b3c5d0eb2372
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/ttsd_engine_agent.c