Remove unused function 27/70527/1 accepted/tizen/common/20160519.191707 accepted/tizen/ivi/20160520.003514 accepted/tizen/mobile/20160520.004054 accepted/tizen/tv/20160520.003436 accepted/tizen/wearable/20160520.003543 submit/tizen/20160519.101452
authorSangyoon Jang <s89.jang@samsung.com>
Thu, 19 May 2016 09:34:54 +0000 (18:34 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Thu, 19 May 2016 09:34:54 +0000 (18:34 +0900)
Change-Id: I7cb2a593aa99f6523d2f33cf56ba8c0208bdee2b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/tpk/step/filesystem/step_tpk_prepare_package_directory.cc

index 7297cad3357039d970b702ff03944804339f39b3..b0e1a762bf414ae5fff92da5f411fa833c17ef01 100644 (file)
@@ -30,23 +30,6 @@ const std::vector<std::string> kSymlinkEntries = {
   "signature2.xml"
 };
 
-bool ReplacePaths(const bf::path& source, const bf::path& destination) {
-  if (!bf::exists(destination.parent_path())) {
-    bs::error_code error;
-    bf::create_directories(destination.parent_path(), error);
-    if (error) {
-      LOG(ERROR) << "Failed to create destination directory for directory "
-                 << "backup";
-      return false;
-    }
-  }
-  if (!ci::MoveDir(source, destination)) {
-    LOG(ERROR) << "Failed to move " << source << " to " << destination;
-    return false;
-  }
-  return true;
-}
-
 }  // namespace
 
 namespace tpk {