Eliminate unused internal functions. 81/134481/2 accepted/tizen/unified/20170706.193739 submit/tizen/20170706.010921
authorKunhoon Baik <knhoon.baik@samsung.com>
Mon, 19 Jun 2017 01:37:29 +0000 (10:37 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Thu, 6 Jul 2017 01:04:38 +0000 (10:04 +0900)
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

include/runtime_info_private.h
packaging/capi-system-runtime-info.spec
src/runtime_info_vconf.c

index 104f738..f46ad3a 100644 (file)
@@ -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);
index 274d8fa..3abbda8 100644 (file)
@@ -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
index 8213031..f39bdad 100644 (file)
@@ -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);