summaryrefslogtreecommitdiff
path: root/src/buildtool/storage/fs_utils.cpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-03-12 18:23:35 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-03-13 12:14:53 +0100
commit2bd069cdecb5371d906f8df9f5fb36f308d6296f (patch)
tree3db2cee634411639d520b2dee796b8a97b7342f6 /src/buildtool/storage/fs_utils.cpp
parentf487f592fdc85fbdb95856abb7f4281dd4353da9 (diff)
downloadjustbuild-2bd069cdecb5371d906f8df9f5fb36f308d6296f.tar.gz
Move storage-aware tmpdir creation to config
... as the fs_utils have a lot more dependencies making them usable in less places. Moreover, this function also serves to shape the layout of the local build root and hence is more appropriately placed in the config anyway.
Diffstat (limited to 'src/buildtool/storage/fs_utils.cpp')
-rw-r--r--src/buildtool/storage/fs_utils.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/buildtool/storage/fs_utils.cpp b/src/buildtool/storage/fs_utils.cpp
index 5cc3d8a0..b606431c 100644
--- a/src/buildtool/storage/fs_utils.cpp
+++ b/src/buildtool/storage/fs_utils.cpp
@@ -49,12 +49,6 @@ auto GetGitRoot(LocalPathsPtr const& just_mr_paths,
return StorageConfig::GitRoot();
}
-auto CreateTypedTmpDir(std::string const& type) noexcept -> TmpDirPtr {
- // try to create parent dir
- auto parent_path = StorageConfig::EphemeralRoot() / "tmp-workspaces" / type;
- return TmpDir::Create(parent_path);
-}
-
auto GetCommitTreeIDFile(std::string const& commit) noexcept
-> std::filesystem::path {
return StorageConfig::BuildRoot() / "commit-tree-map" / commit;