From: Lukasz Stanislawski Date: Wed, 31 Oct 2018 17:02:05 +0000 (+0100) Subject: setting-storage: remove unused APIs X-Git-Tag: submit/tizen/20190409.085310~1^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F192209%2F2;p=profile%2Fmobile%2Fapps%2Fnative%2Fsettings.git setting-storage: remove unused APIs Change-Id: I30e0083b9e93310f596c5c5addf62640df07a9f8 --- diff --git a/setting-storage/inc/setting-storage.h b/setting-storage/inc/setting-storage.h index 0aac9495..20aa32eb 100644 --- a/setting-storage/inc/setting-storage.h +++ b/setting-storage/inc/setting-storage.h @@ -81,9 +81,6 @@ typedef struct _SettingStorage { Setting_GenGroupItem_Data *misces; Setting_GenGroupItem_Data *caches; - pkgmgr_client *pc; - pkgmgr_client *pc_total_size; - /* storage_graph sub_layout*/ Elm_Object_Item *graph_genlist_it; diff --git a/setting-storage/src/setting-storage-applications-utils.c b/setting-storage/src/setting-storage-applications-utils.c index ffaba838..a6d41706 100755 --- a/setting-storage/src/setting-storage-applications-utils.c +++ b/setting-storage/src/setting-storage-applications-utils.c @@ -16,7 +16,6 @@ * limitations under the License. * */ -#include #include #include "setting-storage-utils.h" diff --git a/setting-storage/src/setting-storage-applications.c b/setting-storage/src/setting-storage-applications.c index 5108dc51..d314d991 100755 --- a/setting-storage/src/setting-storage-applications.c +++ b/setting-storage/src/setting-storage-applications.c @@ -18,7 +18,6 @@ */ #include #include -#include #include "setting-storage-utils.h" #include "setting-storage-async-worker.h" diff --git a/setting-storage/src/setting-storage-main.c b/setting-storage/src/setting-storage-main.c index bac22b15..435fc55c 100755 --- a/setting-storage/src/setting-storage-main.c +++ b/setting-storage/src/setting-storage-main.c @@ -602,15 +602,6 @@ static int _view_destroy(void *data) evas_object_del(ad->popup); ad->popup = NULL; - if (ad->pc) { - pkgmgr_client_free(ad->pc); - ad->pc = NULL; - } - if (ad->pc_total_size) { - pkgmgr_client_free(ad->pc_total_size); - ad->pc_total_size = NULL; - } - setting_view_storage_main.is_create = 0; return SETTING_RETURN_SUCCESS; diff --git a/setting-storage/src/setting-storage-utils.c b/setting-storage/src/setting-storage-utils.c index 79d6d3f5..a9bbaec9 100755 --- a/setting-storage/src/setting-storage-utils.c +++ b/setting-storage/src/setting-storage-utils.c @@ -332,7 +332,6 @@ static void storage_get_app_cache_size_cb(const package_size_info_h size_info, ret_if(!ad->graph_genlist_it); elm_genlist_item_update(ad->graph_genlist_it); - ad->pc_total_size = NULL; SETTING_TRACE_END; } @@ -343,14 +342,6 @@ void storage_update_apps_cache_info(SettingStorage *ad) ret_if(NULL == ad); - if (ad->pc_total_size) - pkgmgr_client_free(ad->pc_total_size); - - ad->pc_total_size = pkgmgr_client_new(PC_REQUEST); - if (NULL == ad->pc_total_size) { - SETTING_TRACE_ERROR("pkgmgr_client_new() Fail"); - return; - } ret = package_manager_get_total_package_size_info( storage_get_app_cache_size_cb, ad);