From 786a920fb44bc70113cec0f0e1d7cc937b1a8ff1 Mon Sep 17 00:00:00 2001 From: Kichan Kwon Date: Mon, 21 Jan 2019 15:23:54 +0900 Subject: [PATCH] Remove deprecated enum values Change-Id: I4c8e78a4a99f3ee1d0a35d86ae603b3462e1b348 Signed-off-by: Kichan Kwon --- include/runtime_info.h | 2 - src/runtime_info.c | 18 --------- src/runtime_info_location.c | 96 --------------------------------------------- 3 files changed, 116 deletions(-) delete mode 100644 src/runtime_info_location.c diff --git a/include/runtime_info.h b/include/runtime_info.h index 4a3b07a..cdff291 100644 --- a/include/runtime_info.h +++ b/include/runtime_info.h @@ -56,8 +56,6 @@ typedef enum { RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED = 3, /** -#include -#include - -#include -#include - -#include -#include - -#ifdef LOG_TAG -#undef LOG_TAG -#endif - -#define LOG_TAG "CAPI_SYSTEM_RUNTIME_INFO" - -static const char *VCONF_LOCATION_SERVICE_ENABLED = VCONFKEY_LOCATION_ENABLED; -static const char *VCONF_LOCATION_NETWORK_ENABLED = VCONFKEY_LOCATION_NETWORK_ENABLED; - -//LCOV_EXCL_START : deprecated feature -int runtime_info_location_service_get_value(runtime_info_value_h value) -{ - int vconf_value; - int ret; - - LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED is deprecated and will be removed from next release."); - - RETURN_ERROR_IF_NOT_SUPPORTED("http://tizen.org/feature/location"); - - ret = runtime_info_vconf_get_value_int(VCONF_LOCATION_SERVICE_ENABLED, &vconf_value); - if (ret == RUNTIME_INFO_ERROR_NONE) - value->b = vconf_value; - - return ret; -} - -int runtime_info_location_service_set_event_cb() -{ - LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED is deprecated and will be removed from next release."); - - return runtime_info_vconf_set_event_cb(VCONF_LOCATION_SERVICE_ENABLED, RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED, 0); -} - -void runtime_info_location_service_unset_event_cb() -{ - LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED is deprecated and will be removed from next release."); - - runtime_info_vconf_unset_event_cb(VCONF_LOCATION_SERVICE_ENABLED, 0); -} - -int runtime_info_location_network_get_value(runtime_info_value_h value) -{ - int vconf_value; - int ret; - - LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED is deprecated and will be removed from next release."); - - RETURN_ERROR_IF_NOT_SUPPORTED("http://tizen.org/feature/location.wps"); - - ret = runtime_info_vconf_get_value_int(VCONF_LOCATION_NETWORK_ENABLED, &vconf_value); - if (ret == RUNTIME_INFO_ERROR_NONE) - value->b = vconf_value; - - return ret; -} - -int runtime_info_location_network_set_event_cb() -{ - LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED is deprecated and will be removed from next release."); - - return runtime_info_vconf_set_event_cb(VCONF_LOCATION_NETWORK_ENABLED, RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED, 0); -} - -void runtime_info_location_network_unset_event_cb() -{ - LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED is deprecated and will be removed from next release."); - - runtime_info_vconf_unset_event_cb(VCONF_LOCATION_NETWORK_ENABLED, 0); -} -//LCOV_EXCL_STOP -- 2.7.4