Power: remove warning messages becasue those apis are still needed 75/147875/1 accepted/tizen/4.0/unified/20170906.143839 submit/tizen_4.0/20170906.032122
authorlokilee73 <changjoo.lee@samsung.com>
Wed, 6 Sep 2017 02:54:23 +0000 (11:54 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Wed, 6 Sep 2017 02:54:54 +0000 (11:54 +0900)
Change-Id: I79b0df361a2bdc23e567b54fda08776347aba8cd
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);