From 76f517b0713754a965cd4beeccaa4a813638139b Mon Sep 17 00:00:00 2001 From: lokilee73 Date: Tue, 9 Jul 2019 17:55:06 +0900 Subject: [PATCH] Remove Deprecation Warnings to cancel deprecation Related API and enum API - device_display_change_state() power_lock_e - POWER_LOCK_DISPLAY power_lock_e - POWER_LOCK_DISPLAY_DIM Change-Id: Ie620aeb4b5d4ed7689e269b10bfd210337461852 Signed-off-by: lokilee73 --- include/display.h | 3 +-- include/power.h | 8 ++------ src/display.c | 1 - 3 files changed, 3 insertions(+), 9 deletions(-) mode change 100755 => 100644 src/display.c diff --git a/include/display.h b/include/display.h index d021d3b..fc9f175 100644 --- a/include/display.h +++ b/include/display.h @@ -147,7 +147,6 @@ int device_display_get_state(display_state_e *state); /** - * @deprecated Deprecated Since @if WEARABLE 3.0 @else 2.4 @endif * @brief Changes the display state by force. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * @privlevel public @@ -177,7 +176,7 @@ int device_display_get_state(display_state_e *state); * ... * @endcode */ -int device_display_change_state(display_state_e state) TIZEN_DEPRECATED_API; +int device_display_change_state(display_state_e state); /** diff --git a/include/power.h b/include/power.h index 1b11d1a..b62b5ee 100644 --- a/include/power.h +++ b/include/power.h @@ -41,10 +41,6 @@ extern "C" { * POWER_LOCK_DISPLAYONON(Normal) * POWER_LOCK_DISPLAY_DIMONON(Dim) * - * The POWER_LOCK_DISPLAY and POWER_LOCK_DISPLAY_DIM types were deprecated in Tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif.\n - * Please use below api set instead of these types.\n - * int efl_util_set_window_screen_mode(Evas_Object *window, efl_util_screen_mode_e mode); \n - * int efl_util_get_window_screen_mode(Evas_Object *window, efl_util_screen_mode_e *mode); * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * @remarks An application can lock the specific type. * @remarks These enums are mutually exclusive. @@ -52,8 +48,8 @@ extern "C" { */ typedef enum { POWER_LOCK_CPU, /**< CPU lock */ - POWER_LOCK_DISPLAY, /**< Display normal lock (Deprecated since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif. Use efl_util_set_window_screen_mode() instead) */ - POWER_LOCK_DISPLAY_DIM, /**< Display dim lock (Deprecated since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif. Use efl_util_set_window_screen_mode() instead) */ + POWER_LOCK_DISPLAY, /**< Display normal lock */ + POWER_LOCK_DISPLAY_DIM, /**< Display dim lock */ } power_lock_e; diff --git a/src/display.c b/src/display.c old mode 100755 new mode 100644 index 6817f28..2a0fa8c --- a/src/display.c +++ b/src/display.c @@ -228,7 +228,6 @@ int device_display_change_state(display_state_e state) int ret; static int privilege = -1; - _W("DEPRECATION WARNING: device_display_change_state() is deprecated and will be removed from next release."); if (check_async_call_rate() < 0) { _E("Rejected by too frequent calls; %d (calls per sec.) limit is violated." , CHECK_RATE_THRESHOLD); -- 2.34.1