From 4d4c10748545e5a6a8a820ed579d5558ca7ff234 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Fri, 2 Oct 2015 11:43:54 +0900 Subject: [PATCH] Remove pkgmgrinfo_pkginfo_get_package_size in pkg_info.c Change-Id: Ic02ab31c64a2901a63556b0e3abadecf6bfc3e8b Signed-off-by: Sangyoon Jang --- tool/pkg_info.c | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/tool/pkg_info.c b/tool/pkg_info.c index 1d122c4..fd7ebfe 100644 --- a/tool/pkg_info.c +++ b/tool/pkg_info.c @@ -81,7 +81,6 @@ static void __get_pkgmgrinfo_pkginfo(const pkgmgrinfo_pkginfo_h handle, void *us bool readonly = 0; bool update = 0; bool system = 0; - int size = -1; int installed_time = -1; ret = pkgmgrinfo_pkginfo_get_type(handle, &type); @@ -104,12 +103,6 @@ static void __get_pkgmgrinfo_pkginfo(const pkgmgrinfo_pkginfo_h handle, void *us } printf("Install Location: %d\n", location); - ret = pkgmgrinfo_pkginfo_get_package_size(handle, &size); - if (ret < 0) { - printf("Failed to get package size \n"); - } - printf("Package Size: %d\n", size); - ret = pkgmgrinfo_pkginfo_get_icon(handle, &icon); if (ret < 0) { printf("Failed to get icon\n"); @@ -686,10 +679,9 @@ static int __add_pkg_filter(uid_t uid) printf("11 --> filter by package preload [0|1]\n"); printf("12 --> filter by package update [0|1]\n"); printf("13 --> filter by package appsetting [0|1]\n"); - printf("14 --> filter by package size\n"); - printf("15 --> filter by package installed storage[installed_internal | installed_external]\n"); - printf("16 --> filter by package privilege\n"); - printf("17 --> filter by package support disable [0|1]\n"); + printf("14 --> filter by package installed storage[installed_internal | installed_external]\n"); + printf("15 --> filter by package privilege\n"); + printf("16 --> filter by package support disable [0|1]\n"); choice = __get_integer_input_data(); switch (choice) { case 0: @@ -850,16 +842,6 @@ static int __add_pkg_filter(uid_t uid) } break; case 14: - val = __get_integer_input_data(); - ret = pkgmgrinfo_pkginfo_filter_add_int(handle, - PMINFO_PKGINFO_PROP_PACKAGE_SIZE, val); - if (ret < 0) { - printf("pkgmgrinfo_pkginfo_filter_add_int() failed\n"); - ret = -1; - goto err; - } - break; - case 15: value = __get_string_input_data(); ret = pkgmgrinfo_pkginfo_filter_add_string(handle, PMINFO_PKGINFO_PROP_PACKAGE_INSTALLED_STORAGE, value); @@ -871,7 +853,7 @@ static int __add_pkg_filter(uid_t uid) free(value); value = NULL; break; - case 16: + case 15: value = __get_string_input_data(); ret = pkgmgrinfo_pkginfo_filter_add_string(handle, PMINFO_PKGINFO_PROP_PACKAGE_PRIVILEGE, @@ -884,7 +866,7 @@ static int __add_pkg_filter(uid_t uid) free(value); value = NULL; break; - case 17: + case 16: val = __get_integer_input_data(); ret = pkgmgrinfo_pkginfo_filter_add_bool(handle, PMINFO_PKGINFO_PROP_PACKAGE_SUPPORT_DISABLE, val); -- 2.7.4