summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShubhojeet <shubhojeet.y@samsung.com>2018-06-14 01:47:33 +0530
committerShubhojeet <shubhojeet.y@samsung.com>2018-06-14 01:47:33 +0530
commitb61a599cd9ebd45b831ff2796f939196bc01203b (patch)
treeac36d2ae5bdd006be2ba82d0bdf70638bbf9cdf1
parentf3ac7ad4a5b34f1c184f03fe3ab558f9bb75a4dc (diff)
downloadattach-panel-document-b61a599cd9ebd45b831ff2796f939196bc01203b.tar.gz
attach-panel-document-b61a599cd9ebd45b831ff2796f939196bc01203b.tar.bz2
attach-panel-document-b61a599cd9ebd45b831ff2796f939196bc01203b.zip
Change-Id: If092aec382e029953e0af68b5290d66736ffad7c Signed-off-by: Shubhojeet <shubhojeet.y@samsung.com>
-rw-r--r--include/doc-data.h1
-rw-r--r--src/doc-data.c11
-rw-r--r--src/doc-list.c2
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--;