Removing deprecated apis 91/181391/3 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181106.201420 accepted/tizen/unified/20180619.110326 submit/tizen/20180614.222201 submit/tizen_5.0/20181101.000008 submit/tizen_5.0/20181106.000001 submit/tizen_5.0/20181106.070715
authorShubhojeet <shubhojeet.y@samsung.com>
Wed, 13 Jun 2018 13:42:30 +0000 (19:12 +0530)
committerShubhojeet <shubhojeet.y@samsung.com>
Wed, 13 Jun 2018 17:03:36 +0000 (22:33 +0530)
Change-Id: Ib4a19776d84453bdb6d0c521c2f0d350bd996225

include/ge-data.h
src/data/ge-data.c
src/view/ge-albums.c

index f99f425..5b91877 100644 (file)
@@ -57,7 +57,6 @@ extern "C" {
                                                        Eina_List * sel_id);
        int _ge_data_get_item_cnt(ge_ugdata * ugd, const char *cluster_id,
                                                          int album_type, int *item_cnt);
-       int _ge_data_del_media_by_id(ge_ugdata * ugd, const char *media_id);
        int _ge_data_create_thumb(ge_media_s * item,
                                                          media_thumbnail_completed_cb callback,
                                                          void *data);
index ce6b197..c6c0b29 100644 (file)
@@ -240,24 +240,6 @@ int _ge_data_get_item_cnt(ge_ugdata * ugd, const char *cluster_id,
        return 0;
 }
 
-/**
- *
- * @param ugd
- * @param media_id
- * @return
- */
-int _ge_data_del_media_by_id(ge_ugdata * ugd, const char *media_id)
-{
-       GE_CHECK_VAL(media_id, -1);
-       int ret = media_info_delete_from_db(media_id);
-       if (ret != 0) {
-               ge_dbgE("Delete media failed[%d]!", ret);
-               return -1;
-       }
-
-       return 0;
-}
-
 /* Creates a thumbnail image for given the media, asynchronously */
 /**
  *
index 3b1c767..d8fc19e 100644 (file)
@@ -968,7 +968,6 @@ int ge_update_gengrid(ge_ugdata * ugd)
 
                        if (!gitem->item->file_url) {
                                ge_dbgE("file_url is invalid!");
-                               _ge_data_del_media_by_id(ugd, gitem->item->uuid);
                                _ge_data_util_free_item(gitem);
                                ugd->thumbs_d->medias_cnt--;
                                i--;
@@ -1276,7 +1275,6 @@ int ge_create_gengrid(ge_ugdata * ugd)
 
                        if (!gitem->item->file_url) {
                                ge_dbgE("file_url is invalid!");
-                               _ge_data_del_media_by_id(ugd, gitem->item->uuid);
                                _ge_data_util_free_item(gitem);
                                ugd->thumbs_d->medias_cnt--;
                                i--;