e_test_event: fix dead code issue 28/324028/1 tizen
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 12 May 2025 10:40:53 +0000 (19:40 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 12 May 2025 10:40:55 +0000 (19:40 +0900)
The indicated dead code may have performed some action; that action will never occur.
In etRunner::​getWinNotiLevel(etWin *): Code can never be reached because of a logical contradiction (CWE-561)

Change-Id: I0ff65b35880bdb797a998a803dfe977394bf2df3
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/e_test_event.cpp

index 9722c1cc83a423fd8ae40c3d631999094dbca4d5..dd7c7872c6ea56848d36705894777a19dc981682 100644 (file)
@@ -685,7 +685,6 @@ etRunner::getWinNotiLevel(etWin *tw)
    EINA_SAFETY_ON_NULL_RETURN_VAL(tw, EFL_UTIL_NOTIFICATION_LEVEL_NONE);
 
    res = efl_util_get_notification_window_level(tw->elm_win, &lv);
-   EINA_SAFETY_ON_FALSE_RETURN_VAL(res == EFL_UTIL_ERROR_NONE, EFL_UTIL_NOTIFICATION_LEVEL_NONE);
    if (res != EFL_UTIL_ERROR_NONE)
      {
         printf("etRunner::getWinNotiLevel: efl_util_get_notification_window_level(%p): return lv:%d, res: %d\n", tw->elm_win, lv, res);