diff options
-rw-r--r-- | include/doc-data.h | 1 | ||||
-rw-r--r-- | src/doc-data.c | 11 | ||||
-rw-r--r-- | src/doc-list.c | 2 |
3 files changed, 0 insertions, 14 deletions
diff --git a/include/doc-data.h b/include/doc-data.h index 70029c4..1091b87 100644 --- a/include/doc-data.h +++ b/include/doc-data.h @@ -89,7 +89,6 @@ extern "C" { int end_pos, Eina_List ** pmedias_elist, doc_restore_selected_cb restore_cb, Eina_List * sel_id); - int doc_del_media_data_by_id(doc_ugdata * ugd, const char *media_id); int doc_data_init(doc_ugdata * ugd); int doc_data_finalize(doc_ugdata * ugd); #ifdef _cplusplus diff --git a/src/doc-data.c b/src/doc-data.c index a3bf325..11136ca 100644 --- a/src/doc-data.c +++ b/src/doc-data.c @@ -530,17 +530,6 @@ int doc_data_get_media_data(doc_ugdata * ugd, int type, int start_pos, return err; } -int doc_del_media_data_by_id(doc_ugdata * ugd, const char *media_id) -{ - DOC_CHECK_VAL(media_id, -1); - int ret = media_info_delete_from_db(media_id); - if (ret != 0) { - doc_dbgE("Delete media failed[%d]!", ret); - return -1; - } - - return 0; -} int doc_data_init(doc_ugdata * ugd) { diff --git a/src/doc-list.c b/src/doc-list.c index 5f8b835..201484a 100644 --- a/src/doc-list.c +++ b/src/doc-list.c @@ -831,7 +831,6 @@ int doc_update_genlist(doc_ugdata * ugd) if (!ditem->item->file_url) { doc_dbgE("file_url is invalid!"); - doc_del_media_data_by_id(ugd, ditem->item->uuid); doc_data_util_free_item(ditem); ugd->thumbs_d->medias_cnt--; i--; @@ -991,7 +990,6 @@ int doc_create_genlist(doc_ugdata * ugd) if (!ditem->item->file_url) { doc_dbgE("file_url is invalid!"); - doc_del_media_data_by_id(ugd, ditem->item->uuid); doc_data_util_free_item(ditem); ugd->thumbs_d->medias_cnt--; i--; |