diff options
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 }; |