Remove unused code 57/182457/1
authorpr.jung <pr.jung@samsung.com>
Mon, 25 Jun 2018 08:57:12 +0000 (17:57 +0900)
committerpr.jung <pr.jung@samsung.com>
Mon, 25 Jun 2018 08:57:12 +0000 (17:57 +0900)
Change-Id: I64ac16874dcbfda72f88ad9ed001e67b064083b3
Signed-off-by: pr.jung <pr.jung@samsung.com>
src/storage-inhouse.c

index a522ee9..d3e30d3 100755 (executable)
@@ -180,61 +180,6 @@ API int storage_get_primary_sdcard(int *storage_id, char **path)
        return STORAGE_ERROR_NONE;
 }
 
-API int storage_get_type_dev(int storage_id, storage_type_e *type, storage_dev_e *dev)
-{
-       storage_ext_device *ext_dev;
-       int ret;
-
-       if (storage_id < 0) {
-               _E("Invalid parameger");
-               return STORAGE_ERROR_NO_DEVICE;
-       }
-
-       if (!type) {
-               _E("Invalid parameger");
-               return STORAGE_ERROR_INVALID_PARAMETER;
-       }
-
-       if (!dev) {
-               _E("Invalid parameger");
-               return STORAGE_ERROR_INVALID_PARAMETER;
-       }
-
-       ret = storage_get_type(storage_id, type);
-       if (ret != STORAGE_ERROR_NONE) {
-               _E("Failed to get storage type: %d", ret);
-               return ret;
-       }
-       if (*type == STORAGE_TYPE_INTERNAL)
-               return STORAGE_ERROR_NONE;
-
-       ext_dev = calloc(1, sizeof(storage_ext_device));
-       if (!ext_dev) {
-               //LCOV_EXCL_START System Error
-               _E("calloc failed");
-               return STORAGE_ERROR_OUT_OF_MEMORY;
-               //LCOV_EXCL_STOP
-       }
-
-       ret = storage_ext_get_device_info(storage_id, ext_dev);
-       if (ret < 0) {
-               _E("Cannot get the storage with id (%d, ret:%d)", storage_id, ret); //LCOV_EXCL_LINE
-               ret = STORAGE_ERROR_NO_DEVICE;
-               goto out;
-       }
-
-       if (ext_dev->type == STORAGE_EXT_SCSI)
-               *dev = STORAGE_DEV_EXT_USB_MASS_STORAGE;
-       else if (ext_dev->type == STORAGE_EXT_MMC)
-               *dev = STORAGE_DEV_EXT_SDCARD;
-       ret = STORAGE_ERROR_NONE;
-       _I("type: %d(internal:0, external:1) dev: %d(sdcard: 1001, usb: 1002)", *type, *dev);
-
-out:
-       storage_ext_release_device(&ext_dev);
-       return ret;
-}
-
 API int storage_get_storage_level(enum tzplatform_variable id, char **level)
 {
        int ret;