Fix wrong implementation
authorChanggyu Choi <changyu.choi@samsung.com>
Wed, 17 Feb 2021 09:45:06 +0000 (18:45 +0900)
committer최창규/Tizen Platform Lab(SR)/Engineer/삼성전자 <changyu.choi@samsung.com>
Wed, 17 Feb 2021 23:48:27 +0000 (08:48 +0900)
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/common/request_type.hh
src/server/runner.cc
src/server/shared_string.hh
src/server/worker_thread.cc

index e8efd2f..d6c107c 100644 (file)
@@ -23,8 +23,6 @@ enum ReqType {
   REQ_TYPE_NONE = -1,
   GET_PKG_INFO = 0,
   GET_APP_INFO,
-  GET_APPCTRL_PRIV,
-  GET_DATA_CTRL,
   SET_PKG_INFO,
   SET_CERT_INFO,
   GET_CERT_INFO,
index 8c74762..50b7320 100644 (file)
@@ -55,7 +55,6 @@ int Runner::OnReceiveRequest(int fd, GIOCondition cond, void* user_data) {
 
 void Runner::OnLanguageChange(keynode_t* key, void* user_data) {
   auto runner = static_cast<Runner*>(user_data);
-  char* val = vconf_keynode_get_str(key);
   runner->thread_pool_->SetLocale(vconf_get_str(VCONFKEY_LANGSET));
 }
 
index 9d6dc5b..9e720b4 100644 (file)
@@ -28,7 +28,7 @@ class SharedString {
     lock_.lock();
     std::string ret = str_;
     lock_.unlock();
-    return std::move(ret);
+    return ret;
   }
   void SetString(std::string& str) {
     lock_.lock();
index 180438b..35c9ee0 100644 (file)
 #include "worker_thread.hh"
 
 #include "pkgmgrinfo_debug.h"
-#include "get_appctrlpriv_request_handler.hh"
 #include "get_appinfo_request_handler.hh"
 #include "get_cert_request_handler.hh"
-#include "get_datacontrol_request_handler.hh"
 #include "get_pkginfo_request_handler.hh"
 #include "query_request_handler.hh"
 #include "set_cert_request_handler.hh"
@@ -62,10 +60,6 @@ void WorkerThread::Run() {
       new request_handler::GetPkginfoRequestHandler());
   handler[pkgmgr_common::ReqType::GET_APP_INFO].reset(
       new request_handler::GetAppinfoRequestHandler());
-  handler[pkgmgr_common::ReqType::GET_APPCTRL_PRIV].reset(
-      new request_handler::GetAppctrlprivRequestHandler());
-  handler[pkgmgr_common::ReqType::GET_DATA_CTRL].reset(
-      new request_handler::GetDatacontrolRequestHandler());
   handler[pkgmgr_common::ReqType::SET_PKG_INFO].reset(
       new request_handler::SetPkginfoRequestHandler());
   handler[pkgmgr_common::ReqType::SET_CERT_INFO].reset(