From 0c50b8a6a181795697be882bd62c0d37efab078c Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Wed, 4 Dec 2024 12:48:27 +0100 Subject: GitCAS: remove redundant method (cherry-picked from f40780393d68e2ebb866d8b941b5a30f0ea5f0de) --- src/buildtool/file_system/git_cas.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/buildtool/file_system/git_cas.hpp') 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; /// \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 }; -- cgit v1.2.3