From: Youngjae Cho Date: Thu, 17 Aug 2023 05:15:44 +0000 (+0900) Subject: display: Remove unused ambient code from headed plugin X-Git-Tag: accepted/tizen/unified/20230821.162310~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F47%2F297347%2F3;p=platform%2Fcore%2Fsystem%2Fdeviced.git display: Remove unused ambient code from headed plugin Change-Id: Ie0629fb269c633b24f6be8afbad93c8e4b223f40 Signed-off-by: Youngjae Cho --- diff --git a/plugins/iot-headed/display/core.c b/plugins/iot-headed/display/core.c index 24a25b7..0a1ac78 100644 --- a/plugins/iot-headed/display/core.c +++ b/plugins/iot-headed/display/core.c @@ -44,7 +44,6 @@ #include #include "shared/log.h" -#include "ambient-mode.h" #include "core.h" #include "poll.h" #include "lock-detector.h" diff --git a/plugins/iot-headed/display/device-interface.c b/plugins/iot-headed/display/device-interface.c index 6ca1489..d9ddda4 100644 --- a/plugins/iot-headed/display/device-interface.c +++ b/plugins/iot-headed/display/device-interface.c @@ -32,7 +32,6 @@ #include #include -#include "ambient-mode.h" #include "power/power-suspend.h" #include "core/log.h" #include "shared/devices.h" diff --git a/plugins/iot-headed/display/key-filter.c b/plugins/iot-headed/display/key-filter.c index c0e1a24..32a6bcb 100644 --- a/plugins/iot-headed/display/key-filter.c +++ b/plugins/iot-headed/display/key-filter.c @@ -30,7 +30,6 @@ #include #include -#include "ambient-mode.h" #include "core.h" #include "poll.h" #include "device-interface.h" @@ -220,10 +219,8 @@ static inline bool switch_on_lcd(enum device_flags flags) if (current_state_in_on()) return false; - if (display_panel_get_dpms_cached_state() == DPMS_ON) { - if (ambient_get_state() == false) - return false; - } + if (display_panel_get_dpms_cached_state() == DPMS_ON) + return false; if (flags & LCD_ON_BY_POWER_KEY) broadcast_lcdon_by_powerkey();