diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-12-04 12:48:27 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-01-13 16:21:08 +0100 |
commit | 0c50b8a6a181795697be882bd62c0d37efab078c (patch) | |
tree | 38961a710b57d92b60ae79285c9bae0c25c8e094 /src/buildtool/file_system/git_cas.hpp | |
parent | 4b8bc5ed124f8840c9cde694b85a7272876cc4de (diff) | |
download | justbuild-0c50b8a6a181795697be882bd62c0d37efab078c.tar.gz |
GitCAS: remove redundant method
(cherry-picked from f40780393d68e2ebb866d8b941b5a30f0ea5f0de)
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 e6eed664..78cb6d0c 100644 --- a/src/buildtool/file_system/git_cas.hpp +++ b/src/buildtool/file_system/git_cas.hpp @@ -33,8 +33,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; @@ -71,9 +71,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 }; |