Removing deprecated apis 01/181401/1 tizen_5.0 submit/tizen/20180614.222201 submit/tizen/20180618.142140 submit/tizen/20180831.124001 submit/tizen/20180921.173351 submit/tizen_5.0/20181101.000009
authorShubhojeet <shubhojeet.y@samsung.com>
Wed, 13 Jun 2018 17:37:01 +0000 (23:07 +0530)
committerShubhojeet <shubhojeet.y@samsung.com>
Wed, 13 Jun 2018 17:42:54 +0000 (23:12 +0530)
Change-Id: Ia2a55d0c9a11e73934e9d668c539f82bceed6e9e
Signed-off-by: Shubhojeet <shubhojeet.y@samsung.com>
inc/ge-data.h
src/data/ge-data.c
src/view/ge-gridview.c

index 8631b3e..f985e7a 100644 (file)
@@ -75,7 +75,6 @@ extern "C" {
                                                                 media_content_order_e sort_type);
        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);
        bool _ge_data_is_default_album(const char *match_folder,
                                                                   ge_album_s * mcluster);
        bool _ge_data_is_camera_album(ge_album_s * mcluster);
index 7ee86f5..4da286f 100644 (file)
@@ -975,23 +975,7 @@ 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;
-}
 
 /*
 *   Check it's default album, Camera, Downloads
index 21f8e6f..86de395 100644 (file)
@@ -828,7 +828,6 @@ static bool __ge_grid_append_thumb(ge_ugdata * ugd, Evas_Object * parent,
                }
 
                if (!gitem->item->file_url) {
-                       _ge_data_del_media_by_id(ugd, gitem->item->uuid);
                        _ge_data_util_free_item(gitem);
                        ugd->thumbs_d->medias_cnt--;
                        --i;
@@ -1021,7 +1020,6 @@ static int __ge_grid_idler_append_thumbs(void *data)
 
                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--;