diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-12-04 12:48:27 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-12-05 11:07:10 +0100 |
commit | f40780393d68e2ebb866d8b941b5a30f0ea5f0de (patch) | |
tree | 742568e17142083c82287550b048c0749407e6cc /src/buildtool/file_system/git_cas.hpp | |
parent | 44ec2679c68cbe6141b76d9758b5986725a62d91 (diff) | |
download | justbuild-f40780393d68e2ebb866d8b941b5a30f0ea5f0de.tar.gz |
GitCAS: remove redundant method
Diffstat (limited to 'src/buildtool/file_system/git_cas.hpp')
-rw-r--r-- | src/buildtool/file_system/git_cas.hpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/buildtool/file_system/git_cas.hpp b/src/buildtool/file_system/git_cas.hpp index fff572e1..8751b1e6 100644 --- a/src/buildtool/file_system/git_cas.hpp +++ b/src/buildtool/file_system/git_cas.hpp @@ -32,8 +32,8 @@ using GitCASPtr = std::shared_ptr<GitCAS const>; /// \brief Git CAS that maintains its Git context. class GitCAS { public: - static auto Open(std::filesystem::path const& repo_path) noexcept - -> GitCASPtr; + [[nodiscard]] static auto Open( + std::filesystem::path const& repo_path) noexcept -> GitCASPtr; GitCAS() noexcept; ~GitCAS() noexcept = default; @@ -70,9 +70,6 @@ class GitCAS { // to share it. mutable std::shared_mutex mutex_; - [[nodiscard]] auto OpenODB(std::filesystem::path const& repo_path) noexcept - -> bool; - friend class GitRepo; // allow access to ODB }; |