power: remove unused code 26/288226/1
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 9 Feb 2023 02:55:25 +0000 (11:55 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 14 Feb 2023 03:15:11 +0000 (12:15 +0900)
Change-Id: I7f77684552998c5ba5810143cfde854bd56105d2
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/power/power-suspend.c
src/power/power-suspend.h

index 04728bb69a15a3382ef5f111ac68e08ec028a73e..d475305f1cf53328241ccbcf2eb96ccbf115f5b7 100644 (file)
@@ -254,26 +254,6 @@ int vital_state_changed(void *data)
        return 0;
 }
 
-int pm_suspend(void)
-{
-       int ret_val;
-
-       power_broadcast_suspend();
-       _I("system suspend");
-       ret_val = sys_set_str(POWER_STATE_PATH, "mem");
-       _I("System resume: %d", ret_val);
-       power_broadcast_wakeup();
-
-       ret_val = update_wakeup_reason();
-       if (ret_val < 0) {
-               _E("Failed to update wakeup reason");
-               wakeup_reason = HAL_DEVICE_POWER_TRANSITION_REASON_UNKNOWN;
-               return ret_val;
-       }
-
-       return 0;
-}
-
 int power_enable_autosleep(void)
 {
        _I("System autosleep enabled.");
index 0c629e622003c60d521b633c6d2ca217df3c172b..44eff022a2fdfa216677218b547a4e51e04b03bc 100644 (file)
@@ -75,7 +75,6 @@ void pm_history_print(int fd, int count);
 #endif
 bool vital_mode(void);
 int vital_state_changed(void *data);
-int pm_suspend(void);
 int power_enable_autosleep(void);
 int power_disable_autosleep(void);
 int power_acquire_wakelock(void);