Add log to client side after receiving the result
[platform/core/appfw/pkgmgr-info.git] / src / pkgmgrinfo_db.c
index e94340c..3f30408 100644 (file)
@@ -11,8 +11,6 @@
 #include <dirent.h>
 #include <libgen.h>
 
-#include <sqlite3.h>
-
 #include <tzplatform_config.h>
 
 #include "pkgmgr-info.h"
@@ -113,11 +111,6 @@ static char *_get_db_path(uid_t uid)
        return strdup(path);
 }
 
-int _check_create_cert_db(void)
-{
-       return pkgmgr_parser_initialize_cert_db();
-}
-
 static gid_t _get_gid(const char *name)
 {
        char buf[BUFSIZE];
@@ -229,20 +222,6 @@ API const char *getUserManifestPath(uid_t uid, bool readonly)
        return path;
 }
 
-void _save_column_int(sqlite3_stmt *stmt, int idx, int *i)
-{
-       *i = sqlite3_column_int(stmt, idx);
-}
-
-inline void _save_column_str(sqlite3_stmt *stmt, int idx, char **str)
-{
-       const char *val;
-
-       val = (const char *)sqlite3_column_text(stmt, idx);
-       if (val)
-               *str = strdup(val);
-}
-
 API int pkgmgrinfo_pkginfo_set_usr_installed_storage(const char *pkgid,
                INSTALL_LOCATION location, const char *external_pkg_path,
                uid_t uid)