summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorHaejeong Kim <backto.kim@samsung.com>2012-02-10 14:50:29 +0900
committerHaejeong Kim <backto.kim@samsung.com>2012-02-10 14:50:29 +0900
commit9b6cf5899613e1fc1dcd16a39a2271108d0e066c (patch)
tree53ab05af42707a0954589d18309e303ebb866fc5 /src/util
parent04c16b68cfd5f1a2159a0b3a1f22d9ebe63cb5c5 (diff)
downloadlibmedia-thumbnail-9b6cf5899613e1fc1dcd16a39a2271108d0e066c.tar.gz
libmedia-thumbnail-9b6cf5899613e1fc1dcd16a39a2271108d0e066c.tar.bz2
libmedia-thumbnail-9b6cf5899613e1fc1dcd16a39a2271108d0e066c.zip
remove useless code
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/media-thumb-db.c32
1 files changed, 0 insertions, 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);