From de61eefcf0b2574f44e9ec0e0d313aa52fdddbbb Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 12 Sep 2024 16:06:17 +0200 Subject: Remove Compatibility flag --- src/buildtool/common/protocol_traits.hpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/buildtool/common/protocol_traits.hpp b/src/buildtool/common/protocol_traits.hpp index f1a51cbe..ce596edb 100644 --- a/src/buildtool/common/protocol_traits.hpp +++ b/src/buildtool/common/protocol_traits.hpp @@ -19,15 +19,6 @@ class ProtocolTraits final { public: - [[nodiscard]] static auto Instance() noexcept -> ProtocolTraits& { - static ProtocolTraits instance{}; - return instance; - } - [[nodiscard]] auto IsCompatible() const noexcept -> bool { - return compatible_; - } - void SetCompatible(bool value = true) noexcept { compatible_ = value; } - inline static constexpr auto IsNative(HashFunction::Type hash_type) noexcept -> bool { return hash_type == HashFunction::Type::GitSHA1; @@ -37,8 +28,5 @@ class ProtocolTraits final { HashFunction::Type hash_type) noexcept -> bool { return IsNative(hash_type); } - - private: - bool compatible_ = false; }; #endif // INCLUDED_SRC_BUILDTOOL_COMMON_PROTOCOL_TRAITS_HPP -- cgit v1.2.3