Power: remove warning messages becasue those apis are still needed 76/147876/1 accepted/tizen/unified/20170906.144535 submit/tizen/20170906.032135
authorlokilee73 <changjoo.lee@samsung.com>
Wed, 6 Sep 2017 02:57:34 +0000 (11:57 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Wed, 6 Sep 2017 02:57:38 +0000 (11:57 +0900)
Change-Id: I8ecebba443737e8c52cadba00f00b4bf180a5a43
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
src/power.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 8ed74ad..981f8f4
@@ -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);