Remove boost dependency
[platform/core/appfw/wgt-backend.git] / src / wgt / step / filesystem / step_restore_wgt_symbolic_link.cc
1 // Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by a apache 2.0 license that can be
3 // found in the LICENSE file.
4
5 #include "wgt/step/filesystem/step_restore_wgt_symbolic_link.h"
6
7 #include "wgt/step/filesystem/step_create_wgt_symbolic_link.h"
8
9 namespace wgt {
10 namespace filesystem {
11
12 common_installer::Step::Status StepRestoreWgtSymbolicLink::undo() {
13   StepCreateWgtSymbolicLink step(context_);
14
15   Status result = step.precheck();
16   if (result != Status::OK) {
17     LOG(ERROR) << "Fail to execute precheck of CreateWgtSymbolicLink";
18     return result;
19   }
20
21   result = step.process();
22   if (result != Status::OK) {
23     LOG(ERROR) << "Fail to execute process of CreateWgtSymbolicLink";
24     return result;
25   }
26
27   return result;
28 }
29
30 }  // namespace filesystem
31 }  // namespace wgt