diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-12 16:06:17 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-13 14:41:00 +0200 |
commit | de61eefcf0b2574f44e9ec0e0d313aa52fdddbbb (patch) | |
tree | 72e24841a2e1a0af7b5ccbc5ae9bba26b84089e9 | |
parent | 46c4205a5fe8fa598c49c1f217d399157930f2f4 (diff) | |
download | justbuild-de61eefcf0b2574f44e9ec0e0d313aa52fdddbbb.tar.gz |
Remove Compatibility flag
-rw-r--r-- | src/buildtool/common/protocol_traits.hpp | 12 |
1 files changed, 0 insertions, 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 |