Removing unused functions from step_create_symbolic_link, step_parse, task 05/45905/3
authorAnna Niznik <a.niznik@samsung.com>
Wed, 8 Jul 2015 10:50:06 +0000 (12:50 +0200)
committerPawel Sikorski <p.sikorski@samsung.com>
Thu, 13 Aug 2015 07:34:18 +0000 (00:34 -0700)
Change-Id: Ib7ff457956ce32316ef6bbf8f835f94a3c41b995

src/tpk/step/step_create_symbolic_link.cc
src/tpk/step/step_create_symbolic_link.h
src/tpk/step/step_parse.cc
src/tpk/step/step_parse.h
src/tpk/task.cc
src/tpk/task.h

index 921ece1..e9c31be 100644 (file)
@@ -20,8 +20,6 @@ namespace fs = boost::filesystem;
 using common_installer::ContextInstaller;
 typedef common_installer::Step::Status Status;
 
-SCOPE_LOG_TAG(SymbolicLink)
-
 namespace {
 
 template <typename T>
index 1d50a5e..a763f68 100644 (file)
@@ -3,6 +3,7 @@
 #define TPK_STEP_STEP_CREATE_SYMBOLIC_LINK_H_
 
 #include "common/app_installer.h"
+#include "common/utils/logging.h"
 
 namespace tpk {
 namespace filesystem {
@@ -14,6 +15,8 @@ class StepCreateSymbolicLink : public common_installer::Step {
   Status clean() override { return Status::OK; }
   Status undo() override;
   Status precheck() override;
+
+  SCOPE_LOG_TAG(SymbolicLink)
 };
 
 }  // namespace filesystem
index a083999..ff3bed8 100644 (file)
@@ -65,8 +65,6 @@ namespace {
 
 }  // namespace
 
-SCOPE_LOG_TAG(StepParse)
-
 /* short namespace/class name */
 typedef common_installer::Step::Status Status;
 using boost::filesystem::path;
index 62ccfcb..bc79d3a 100644 (file)
@@ -3,6 +3,7 @@
 #define TPK_STEP_STEP_PARSE_H_
 
 #include "common/step/step.h"
+#include "common/utils/logging.h"
 #include "tpk/xml_parser/xml_parser.h"
 
 namespace tpk {
@@ -23,6 +24,8 @@ class StepParse : public common_installer::Step {
       xml_parser::XmlTree* tree, xml_parser::XmlElement* manifest);
   bool SetPkgInfoChildren(manifest_x *m,
       xml_parser::XmlTree *tree, xml_parser::XmlElement* manifest);
+
+  SCOPE_LOG_TAG(StepParse)
 };
 
 }  // namespace parse
index 1e37833..5ca95ad 100644 (file)
@@ -43,8 +43,6 @@ const char kPkgType[] = "tpk";
 
 namespace tpk {
 
-SCOPE_LOG_TAG(TpkTask)
-
 /* Constructor
  */
 Task::Task() {
index bab2ed2..d637aba 100644 (file)
@@ -5,6 +5,7 @@
 #ifdef HOSTTEST
 #include "test/mock_pkgmgr_installer.h"
 #endif
+#include "common/utils/logging.h"
 
 namespace tpk {
 
@@ -20,6 +21,8 @@ class Task {
   int Update();
   int Uninstall();
   int Reinstall();
+
+  SCOPE_LOG_TAG(TpkTask)
 };  //  class Task
 
 }  //  namespace tpk