Remove unused variables 14/33514/3
authorMaciej Piotrowski <m.piotrowski@samsung.com>
Wed, 31 Dec 2014 13:02:00 +0000 (14:02 +0100)
committerPawel Sikorski <p.sikorski@samsung.com>
Wed, 15 Apr 2015 18:47:56 +0000 (20:47 +0200)
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 <p.sikorski@samsung.com>
parser/pkgmgr_parser.c
parser/pkgmgr_parser_db.c
src/pkgmgr-info.c

index 9a5f239..24d2ce8 100644 (file)
@@ -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) {
index 5967355..074f4d8 100644 (file)
@@ -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);
index 051984a..46b28c0 100644 (file)
@@ -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);