diff --git a/BaseLib/ContainerTools.h b/BaseLib/ContainerTools.h
index 366d09422a54fc48987233124bf4babbcaac9af1..52aca7eef9de586d67bf8ecb2bb93adc778ca4eb 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_;
 };