From: lokilee73 Date: Wed, 6 Sep 2017 02:57:34 +0000 (+0900) Subject: Power: remove warning messages becasue those apis are still needed X-Git-Tag: submit/tizen/20170906.032135^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c05faff30738caeaca439d6b8501dd27b0ef60d7;p=platform%2Fcore%2Fapi%2Fdevice.git Power: remove warning messages becasue those apis are still needed Change-Id: I8ecebba443737e8c52cadba00f00b4bf180a5a43 Signed-off-by: lokilee73 --- diff --git a/src/power.c b/src/power.c old mode 100644 new mode 100755 index 8ed74ad..981f8f4 --- a/src/power.c +++ b/src/power.c @@ -419,13 +419,11 @@ int device_power_request_lock(power_lock_e type, int timeout_ms) if (ret == 0 && (timeout_ms == 0 || timeout_ms > lock_timeout.release)) add_off_lock_timeout(); - } else if (type == POWER_LOCK_DISPLAY) { - _W("DEPRECATION WARNING: This power lock enum is deprecated and will be removed from next release. Use efl_util_set_window_screen_mode() instead."); + } else if (type == POWER_LOCK_DISPLAY) ret = lock_state(DISPLAY_STATE_NORMAL, STAY_CUR_STATE, timeout_ms); - } else if (type == POWER_LOCK_DISPLAY_DIM) { - _W("DEPRECATION WARNING: This power lock enum is deprecated and will be removed from next release. Use efl_util_set_window_screen_mode() instead."); + else if (type == POWER_LOCK_DISPLAY_DIM) ret = lock_state(DISPLAY_STATE_SCREEN_DIM, STAY_CUR_STATE, timeout_ms); - } else + else return DEVICE_ERROR_INVALID_PARAMETER; return errno_to_device_error(ret); @@ -441,13 +439,11 @@ int device_power_release_lock(power_lock_e type) remove_off_lock_timeout(); remove_padding_timeout(); } - } else if (type == POWER_LOCK_DISPLAY) { - _W("DEPRECATION WARNING: This power lock enum is deprecated and will be removed from next release. Use efl_util_set_window_screen_mode() instead."); + } else if (type == POWER_LOCK_DISPLAY) ret = unlock_state(DISPLAY_STATE_NORMAL, PM_KEEP_TIMER); - } else if (type == POWER_LOCK_DISPLAY_DIM) { - _W("DEPRECATION WARNING: This power lock enum is deprecated and will be removed from next release. Use efl_util_set_window_screen_mode() instead."); + else if (type == POWER_LOCK_DISPLAY_DIM) ret = unlock_state(DISPLAY_STATE_SCREEN_DIM, PM_KEEP_TIMER); - } else + else return DEVICE_ERROR_INVALID_PARAMETER; return errno_to_device_error(ret); @@ -455,7 +451,6 @@ int device_power_release_lock(power_lock_e type) int device_power_wakeup(bool dim) { - _W("DEPRECATION WARNING: device_power_wakeup() is deprecated and will be removed from next release."); if (dim) return device_display_change_state(DISPLAY_STATE_SCREEN_DIM);