display: Remove unused ambient code from headed plugin 47/297347/3
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 17 Aug 2023 05:15:44 +0000 (14:15 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Thu, 17 Aug 2023 10:43:47 +0000 (19:43 +0900)
Change-Id: Ie0629fb269c633b24f6be8afbad93c8e4b223f40
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
plugins/iot-headed/display/core.c
plugins/iot-headed/display/device-interface.c
plugins/iot-headed/display/key-filter.c

index 24a25b7..0a1ac78 100644 (file)
@@ -44,7 +44,6 @@
 #include <hal/device/hal-device-power.h>
 
 #include "shared/log.h"
-#include "ambient-mode.h"
 #include "core.h"
 #include "poll.h"
 #include "lock-detector.h"
index 6ca1489..d9ddda4 100644 (file)
@@ -32,7 +32,6 @@
 #include <dlfcn.h>
 #include <hal/device/hal-display.h>
 
-#include "ambient-mode.h"
 #include "power/power-suspend.h"
 #include "core/log.h"
 #include "shared/devices.h"
index c0e1a24..32a6bcb 100644 (file)
@@ -30,7 +30,6 @@
 #include <system/syscommon-plugin-deviced-display-interface.h>
 #include <linux/input.h>
 
-#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();