Remove unused APIs 61/223061/2
authorJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 22 Jan 2020 12:18:04 +0000 (21:18 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 14 Feb 2020 01:54:02 +0000 (01:54 +0000)
Below APIs are removed:
pkgmgr_client_usr_request_size_info
pkgmgr_client_request_size_info

Change-Id: I8db3fc27215d701771254913997030ed2aa6a306
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
client/include/package-manager.h
client/src/pkgmgr.c

index 94da4e9..8cf8b6d 100644 (file)
@@ -835,19 +835,6 @@ int pkgmgr_client_get_total_package_size_info(pkgmgr_client *pc, pkgmgr_total_pk
 int pkgmgr_client_usr_get_total_package_size_info(pkgmgr_client *pc, pkgmgr_total_pkg_size_info_receive_cb result_cb, void *user_data, uid_t uid);
 
 /**
- * @brief              Gets size information of each installed packages.
- * @details            The package size info is asynchronously obtained by callback function added by pkgmgr_client_listen_status.
- *
- * @return 0 on success, otherwise a negative error value
- * @retval #PKGMGR_R_OK                        Successful
- * @retval #PKGMGR_R_EINVAL            Invalid parameter
- * @retval #PKGMGR_R_ECOMM             communication error
- * @retval #PKGMGR_R_ERROR             Internal error
- */
-int pkgmgr_client_request_size_info(void);
-int pkgmgr_client_usr_request_size_info(uid_t uid);
-
-/**
  * @brief      This API removes cache directories
  *
  * This API is for package-manager client application.\n
index 1300285..d4e4504 100644 (file)
@@ -1663,32 +1663,6 @@ catch:
        return ret;
 }
 
-
-API int pkgmgr_client_usr_request_size_info(uid_t uid)
-{
-       int ret;
-       struct pkgmgr_client *client;
-
-       client = pkgmgr_client_new(PC_REQUEST);
-       if (client == NULL) {
-               ERR("out of memory");
-               return PKGMGR_R_ENOMEM;
-       }
-
-       ret = __request_size_info(client, uid);
-       if (ret < 0)
-               ERR("__request_size_info fail");
-
-       pkgmgr_client_free(client);
-       return ret;
-}
-
-API int pkgmgr_client_request_size_info(void)
-{
-       /* get all package size (data, total) */
-       return pkgmgr_client_usr_request_size_info(_getuid());
-}
-
 API int pkgmgr_client_usr_clear_cache_dir(const char *pkgid, uid_t uid)
 {
        GVariant *result;