Removal of request_type property from InstallerContext. 24/37924/2
authorPawel Sikorski <p.sikorski@samsung.com>
Fri, 3 Apr 2015 11:56:37 +0000 (13:56 +0200)
committerPawel Sikorski <p.sikorski@samsung.com>
Thu, 9 Apr 2015 07:52:28 +0000 (09:52 +0200)
It is not used anywhere.

Change-Id: I6efd669e8b1827bb37659db0f13543029283aa31

src/common/app_installer.cc
src/common/context_installer.cc
src/common/context_installer.h

index 48002a0..e5f20c3 100644 (file)
@@ -23,8 +23,7 @@ AppInstaller::AppInstaller(const char* package_type)
   PkgMgrPtr pkgmgr = PkgMgrInterface::Instance();
   pi_.reset(new PkgmgrSignal(pkgmgr.get()->GetRawPi()));
   context_->pkg_type.set(package_type);
-  context_->request_type.set(pkgmgr->GetRequestType());
-  switch (context_->request_type.get()) {
+  switch (pkgmgr->GetRequestType()) {
     case PkgMgrInterface::Type::Install:
       context_->file_path.set(pkgmgr->GetRequestInfo());
       context_->pkgid.set(STR_EMPTY);
index 9b15d5f..d2f7082 100644 (file)
@@ -11,8 +11,7 @@ namespace common_installer {
 namespace fs = boost::filesystem;
 
 ContextInstaller::ContextInstaller()
-    : request_type(PkgMgrInterface::Type::Unknown),
-      manifest_data(static_cast<manifest_x*>(calloc(1, sizeof(manifest_x)))),
+    : manifest_data(static_cast<manifest_x*>(calloc(1, sizeof(manifest_x)))),
       uid(getuid()) {
 
     std::string root_app_path =
index d4b2b03..678223b 100644 (file)
@@ -11,8 +11,6 @@
 #include <memory>
 #include <string>
 
-#include "common/pkgmgr_interface.h"
-
 namespace common_installer {
 
 /** Template class for defining smart attributes.
@@ -51,10 +49,6 @@ class ContextInstaller {
   ContextInstaller();
   ~ContextInstaller();
 
-  // TODO(p.sikorski) it looks, as it is not used anywhere.
-  // request type: Install, Reinstall, Uninstall, Update.
-  Property<PkgMgrInterface::Type> request_type;
-
   // package_type
   Property<std::string> pkg_type;