Remove ms_config_get_str()
[platform/core/multimedia/media-server.git] / src / common / media-common-utils.c
index a90ead4..a861da4 100644 (file)
 
 #ifdef _USE_TVPD_MODE
 #include <sys/prctl.h>
+#include <usb-device.h>
 #endif
 #include <system_info.h>
 #include <device/power.h>
 
-#ifndef _USE_DEVICED_DBUS
-#include <usb-device.h>
-#endif
-
 #include "media-util.h"
 #include "media-server-ipc.h"
 #include "media-common-dbg.h"
@@ -77,25 +74,6 @@ bool ms_config_set_int(const char *key, int value)
        return false;
 }
 
-bool ms_config_get_str(const char *key, char **value)
-{
-       char *res = NULL;
-
-       if (key == NULL || value == NULL) {
-               MS_DBG_ERR("Arguments key or value is NULL");
-               return false;
-       }
-
-       res = vconf_get_str(key);
-       if (MS_STRING_VALID(res)) {
-               *value = g_strdup(res);
-               MS_SAFE_FREE(res);
-               return true;
-       }
-
-       return false;
-}
-
 int ms_get_remain_space(uint64_t *free_space)
 {
        int ret = MS_MEDIA_ERR_NONE;
@@ -276,8 +254,7 @@ int ms_check_scan_ignore(char * path, uid_t uid)
        return ret;
 }
 
-#ifndef _USE_DEVICED_DBUS
-
+#ifdef _USE_TVPD_MODE
 typedef struct storage_result {
        char *storage_path;
        bool result;
@@ -300,7 +277,7 @@ static void __ms_check_mount_status(usb_device_h usb_device, void *user_data)
 bool ms_storage_mount_status(const char *start_path)
 {
        bool ret = false;
-#ifndef _USE_DEVICED_DBUS
+#ifdef _USE_TVPD_MODE
        storage_result_s res = {0, };
        char *remain_path = NULL;
        int remain_len = 0;