Remove the memory database for the cache
[platform/core/appfw/pkgmgr-info.git] / src / server / database / cert_set_db_handler.cc
index bd0144c..381133c 100644 (file)
@@ -26,8 +26,7 @@ namespace pkgmgr_server {
 namespace database {
 
 CertSetDBHandler::CertSetDBHandler(uid_t uid, int pid, bool is_offline)
-    : AbstractDBHandler(uid, pid), uid_(uid),
-      is_offline_(is_offline), handle_(nullptr) {}
+    : AbstractDBHandler(uid, pid), uid_(uid), handle_(nullptr) {}
 
 CertSetDBHandler::~CertSetDBHandler() {}
 
@@ -44,8 +43,6 @@ int CertSetDBHandler::Execute() {
   if (!Connect())
     return PMINFO_R_ERROR;
 
-  if (!is_offline_)
-    DBHandleProvider::GetInst(uid_).SetMemoryMode(GetPID());
   const auto& db = GetConnection().front().first;
 
   return internal::CertInfoSet(db, handle_->pkgid, handle_, uid_);