summaryrefslogtreecommitdiff
path: root/src/buildtool/common/location.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-17 15:11:36 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-05 12:53:57 +0200
commit8c73c618d777a07c017ec0deefe88db83652827e (patch)
tree4165656a0a956a1aa0c7ffbaf555d25a5c5894b3 /src/buildtool/common/location.cpp
parente8ab0db340f9d3f408c3f4d14b5b39c3a7cc7037 (diff)
downloadjustbuild-8c73c618d777a07c017ec0deefe88db83652827e.tar.gz
Move functionality from StorageConfig to related classes.
Diffstat (limited to 'src/buildtool/common/location.cpp')
-rw-r--r--src/buildtool/common/location.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buildtool/common/location.cpp b/src/buildtool/common/location.cpp
index a266069d..597fc286 100644
--- a/src/buildtool/common/location.cpp
+++ b/src/buildtool/common/location.cpp
@@ -18,7 +18,6 @@
#include "src/buildtool/file_system/file_system_manager.hpp"
#include "src/buildtool/logging/log_level.hpp"
#include "src/buildtool/logging/logger.hpp"
-#include "src/buildtool/storage/config.hpp"
auto ReadLocationObject(nlohmann::json const& location,
std::optional<std::filesystem::path> const& ws_root)
@@ -43,7 +42,7 @@ auto ReadLocationObject(nlohmann::json const& location,
root_path = *ws_root;
}
if (root == "home") {
- root_path = StorageConfig::GetUserHome();
+ root_path = FileSystemManager::GetUserHome();
}
if (root == "system") {
root_path = FileSystemManager::GetCurrentDirectory().root_path();