From: Maciej Piotrowski Date: Wed, 31 Dec 2014 13:02:00 +0000 (+0100) Subject: Remove unused variables X-Git-Tag: submit/tizen/20150526.104937~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b0f8d7db3ccef73bcc8758f4f33ab4acd0d71e9;p=platform%2Fcore%2Fappfw%2Fpkgmgr-info.git Remove unused variables This patch impacts below files: - src/pkgmgr-info.c - parser/pkgmgr_parser.c - parser/pkgmgr_parser_db.c Change-Id: I8f2292c11b727c530202523f65a4ca33c31aa3c2 Signed-off-by: Pawel Sikorski --- diff --git a/parser/pkgmgr_parser.c b/parser/pkgmgr_parser.c index 9a5f239..24d2ce8 100644 --- a/parser/pkgmgr_parser.c +++ b/parser/pkgmgr_parser.c @@ -3038,7 +3038,6 @@ __get_icon_with_path(const char* icon, uid_t uid) if (index(icon, '/') == NULL) { char* theme = NULL; - char* iconPath = NULL; char* icon_with_path = NULL; char *app_path = NULL; int len; @@ -3929,7 +3928,6 @@ static int __start_process(xmlTextReaderPtr reader, manifest_x * mfx, uid_t uid) privileges_x *tmp14 = NULL; depth = xmlTextReaderDepth(reader); - int i =0; while ((ret = __next_child_element(reader, depth))) { node = xmlTextReaderConstName(reader); if (!node) { diff --git a/parser/pkgmgr_parser_db.c b/parser/pkgmgr_parser_db.c index 5967355..074f4d8 100644 --- a/parser/pkgmgr_parser_db.c +++ b/parser/pkgmgr_parser_db.c @@ -1927,7 +1927,6 @@ static int __delete_subpkg_info_from_db(char *appid) static int __delete_subpkg_from_db(manifest_x *mfx) { char query[MAX_QUERY_LEN] = { '\0' }; - int ret = -1; char *error_message = NULL; snprintf(query, MAX_QUERY_LEN, "select app_id from package_app_info where package='%s'", mfx->package); diff --git a/src/pkgmgr-info.c b/src/pkgmgr-info.c index 051984a..46b28c0 100644 --- a/src/pkgmgr-info.c +++ b/src/pkgmgr-info.c @@ -2993,9 +2993,7 @@ API int pkgmgrinfo_pkginfo_get_package_size(pkgmgrinfo_pkginfo_h handle, int *si retvm_if(handle == NULL, PMINFO_R_EINVAL, "pkginfo handle is NULL\n"); retvm_if(size == NULL, PMINFO_R_EINVAL, "Argument supplied to hold return value is NULL\n"); char *val = NULL; - char *location = NULL; pkgmgr_pkginfo_x *info = (pkgmgr_pkginfo_x *)handle; - location = (char *)info->manifest_info->installlocation; val = (char *)info->manifest_info->package_size; if (val) { *size = atoi(val);