From 9b6cf5899613e1fc1dcd16a39a2271108d0e066c Mon Sep 17 00:00:00 2001 From: Haejeong Kim Date: Fri, 10 Feb 2012 14:50:29 +0900 Subject: remove useless code --- src/util/media-thumb-db.c | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/util/media-thumb-db.c b/src/util/media-thumb-db.c index 8893f0b..a302c7c 100755 --- a/src/util/media-thumb-db.c +++ b/src/util/media-thumb-db.c @@ -313,38 +313,6 @@ _media_thumb_update_db(const char *origin_path, thumb_dbg(""); int err = -1; -#if 0 - Mitem *item = NULL; - - err = minfo_get_item(mb_svc_handle, origin_path, &item); - if (err < 0) { - thumb_err("minfo_get_item (%s) failed: %d", origin_path, err); - return MEDIA_THUMB_ERROR_DB; - } - - err = minfo_update_media_thumb(mb_svc_handle, item->uuid, thumb_path); - if (err < 0) { - thumb_err("minfo_update_media_thumb (ID:%s, %s) failed: %d", - item->uuid, thumb_path, err); - minfo_destroy_mtype_item(item); - return MEDIA_THUMB_ERROR_DB; - } - - if (item->type == MINFO_ITEM_IMAGE) { - err = minfo_update_image_meta_info_int(mb_svc_handle, item->uuid, - MINFO_IMAGE_META_WIDTH, width, - MINFO_IMAGE_META_HEIGHT, height, -1); - - if (err < 0) { - thumb_err("minfo_update_image_meta_info_int failed: %d", err); - minfo_destroy_mtype_item(item); - return MEDIA_THUMB_ERROR_DB; - } - } - - err = minfo_destroy_mtype_item(item); -#endif - err = _media_thumb_update_thumb_path_to_db(db_handle, origin_path, thumb_path); if (err < 0) { thumb_err("_media_thumb_update_thumb_path_to_db (%s) failed: %d", origin_path, err); -- cgit v1.2.3