Remove same case 09/138009/1
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 11 Jul 2017 00:15:41 +0000 (09:15 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Tue, 11 Jul 2017 00:15:41 +0000 (09:15 +0900)
Change-Id: I8019b52df2f006963b9eabb3438f84a3af19d4df
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/media-thumb-internal.c

index 6526d625f72fc6b4973a9cbda3b571a0198e271c..bf3be75ff7779a43f6b0a24fbb8492d1e6fadefb 100755 (executable)
@@ -270,8 +270,7 @@ int _media_thumb_rotate_thumb(unsigned char *data, int size, int *width, int *he
        return MS_MEDIA_ERR_NONE;
 }
 
-int _media_thumb_get_proper_thumb_size(int orig_w, int orig_h,
-                                                               int *thumb_w, int *thumb_h)
+int _media_thumb_get_proper_thumb_size(int orig_w, int orig_h, int *thumb_w, int *thumb_h)
 {
        BOOL portrait = FALSE;
        double ratio;
@@ -1141,11 +1140,7 @@ int _media_thumb_get_hash_name(const char *file_full_path, char *thumb_hash_path
                return MS_MEDIA_ERR_INTERNAL;
        }
 
-       if (store_type == MS_USER_STORAGE_INTERNAL) {
-               ret = ms_user_get_default_thumb_store_path(uid, &get_path);
-               if (get_path != NULL)
-                       ret_len = snprintf(thumb_hash_path, max_thumb_path - 1, "%s/.%s-%s.jpg", get_path, file_ext, hash_name);
-       } else if (store_type == MS_USER_STORAGE_EXTERNAL) {
+       if (store_type == MS_USER_STORAGE_EXTERNAL) {
                ret = ms_user_get_mmc_thumb_store_path(uid, &get_path);
                if (get_path != NULL)
                        ret_len = snprintf(thumb_hash_path, max_thumb_path - 1, "%s/.%s-%s.jpg", get_path, file_ext, hash_name);