From 7ab429d9718e74bc4659c122a7521f9a54300e67 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Thu, 27 Apr 2023 16:53:52 +0200 Subject: [PATCH] [BL] Remove equality operator of the PRACViewIF Unused (and not tested) so far. --- BaseLib/ContainerTools.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/BaseLib/ContainerTools.h b/BaseLib/ContainerTools.h index 366d09422a5..52aca7eef9d 100644 --- a/BaseLib/ContainerTools.h +++ b/BaseLib/ContainerTools.h @@ -138,17 +138,7 @@ struct PolymorphicRandomAccessContainerViewInterface [[nodiscard]] virtual Element& operator[](std::size_t) const = 0; - [[nodiscard]] bool operator==( - PolymorphicRandomAccessContainerViewInterface const& other) - const noexcept - { - return underlyingContainerPtr() == other.underlyingContainerPtr(); - } - virtual ~PolymorphicRandomAccessContainerViewInterface() = default; - -protected: - virtual void const* underlyingContainerPtr() const noexcept = 0; }; template <typename Element, typename Container> @@ -190,12 +180,6 @@ struct CovariantRandomAccessContainerView final std::size_t size() const noexcept override { return container_.size(); } -protected: - void const* underlyingContainerPtr() const noexcept override - { - return &container_; - } - private: Container& container_; }; -- GitLab