summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_cas.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-12-04 14:47:50 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2024-12-05 11:08:08 +0100
commit9a164558010af84d834dee86f1929bd6582a1ccb (patch)
tree7b0fabd2e581baa36b2e3b1acc154c2f278411be /src/buildtool/file_system/git_cas.hpp
parent31ce2ad2b7457147621c5aa104c677754b37d11d (diff)
downloadjustbuild-9a164558010af84d834dee86f1929bd6582a1ccb.tar.gz
GitCAS: remove mutex and locks
...since there are no unique_locks any more.
Diffstat (limited to 'src/buildtool/file_system/git_cas.hpp')
-rw-r--r--src/buildtool/file_system/git_cas.hpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/buildtool/file_system/git_cas.hpp b/src/buildtool/file_system/git_cas.hpp
index 5d200661..37f197f0 100644
--- a/src/buildtool/file_system/git_cas.hpp
+++ b/src/buildtool/file_system/git_cas.hpp
@@ -19,7 +19,6 @@
#include <filesystem>
#include <memory>
#include <optional>
-#include <shared_mutex>
#include <string>
#include <utility>
@@ -80,11 +79,6 @@ class GitCAS {
// git folder path of repo
std::filesystem::path git_path_;
- // mutex to guard odb while setting up a "fake" repository; it needs to be
- // uniquely owned while wrapping the odb, but then git operations are free
- // to share it.
- mutable std::shared_mutex mutex_;
-
friend class GitRepo; // allow access to ODB
};