From: Kunhoon Baik Date: Mon, 19 Jun 2017 01:37:29 +0000 (+0900) Subject: Eliminate unused internal functions. X-Git-Tag: submit/tizen/20170706.010921^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0775768ca68531108542dfc97700c0ebeee9bd0f;p=platform%2Fcore%2Fapi%2Fruntime-info.git Eliminate unused internal functions. Except of system resource information, runtime-info will not provide the specific module's information like GPS. Each module needs to provide such a specific module's information because such way will enhance API findability for developer. Thus, from now, we will not keep internal codes for future runtime-info information any more. Change-Id: Ic6cc41a1377f19ab87507f71f5e7b1e48f269d74 --- diff --git a/include/runtime_info_private.h b/include/runtime_info_private.h index 104f738..f46ad3a 100644 --- a/include/runtime_info_private.h +++ b/include/runtime_info_private.h @@ -72,8 +72,6 @@ void runtime_info_updated(runtime_info_key_e key); int runtime_info_vconf_get_value_int(const char *vconf_key, int *value); int runtime_info_vconf_get_value_bool(const char *vconf_key, int *value); -int runtime_info_vconf_get_value_double(const char *vconf_key, double *value); -int runtime_info_vconf_get_value_string(const char *vconf_key, char **value); int runtime_info_vconf_set_event_cb(const char *vconf_key, runtime_info_key_e runtime_info_key, int slot); void runtime_info_vconf_unset_event_cb(const char *vconf_key, int slot); diff --git a/packaging/capi-system-runtime-info.spec b/packaging/capi-system-runtime-info.spec index 274d8fa..3abbda8 100644 --- a/packaging/capi-system-runtime-info.spec +++ b/packaging/capi-system-runtime-info.spec @@ -1,7 +1,7 @@ Name: capi-system-runtime-info Summary: A Runtime Information library in Core API Version: 0.0.4 -Release: 1 +Release: 2 Group: System/API License: Apache-2.0 Source0: %{name}-%{version}.tar.gz diff --git a/src/runtime_info_vconf.c b/src/runtime_info_vconf.c index 8213031..f39bdad 100644 --- a/src/runtime_info_vconf.c +++ b/src/runtime_info_vconf.c @@ -57,31 +57,6 @@ int runtime_info_vconf_get_value_bool(const char *vconf_key, int *value) return ret; } -//LCOV_EXCL_START : not used function -int runtime_info_vconf_get_value_double(const char *vconf_key, double *value) -{ - int ret = vconf_get_dbl(vconf_key, value); - CHECK_VCONF_RESULT(ret); - return ret; -} - -int runtime_info_vconf_get_value_string(const char *vconf_key, char **value) -{ - char *str_value = NULL; - int ret; - - str_value = vconf_get_str(vconf_key); - if (!str_value) { - ret = -1; - CHECK_VCONF_RESULT(ret); - return ret; - } - - *value = str_value; - return RUNTIME_INFO_ERROR_NONE; -} -//LCOV_EXCL_STOP - //LCOV_EXCL_START : not called callback typedef void (*runtime_info_vconf_event_cb)(keynode_t *node, void *event_data);