From cadfed83acd392bb9dde6dded241aeefabc235ec Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 13 Nov 2020 12:03:16 +0100 Subject: [PATCH] Remove unused method Change-Id: I22738a3d5f1ad3dc4e5f542f4102dfac0491a241 Reviewed-by: Andrei Golubev Reviewed-by: Thiago Macieira --- src/corelib/tools/qarraydataops.h | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/corelib/tools/qarraydataops.h b/src/corelib/tools/qarraydataops.h index 7b55406ac2d..b157e2d7339 100644 --- a/src/corelib/tools/qarraydataops.h +++ b/src/corelib/tools/qarraydataops.h @@ -890,28 +890,6 @@ protected: using Self = QCommonArrayOps; public: - - // does the iterator point into this array? - template - bool iteratorPointsIntoArray(const It &it) - { - using DecayedIt = std::decay_t; - using RemovedConstVolatileIt = std::remove_cv_t; - constexpr bool selfIterator = - // if passed type is an iterator type: - std::is_same_v - || std::is_same_v - // if passed type is a pointer type: - || std::is_same_v - || std::is_same_v - || std::is_same_v; - if constexpr (selfIterator) { - return (it >= this->begin() && it <= this->end()); - } else { - return false; - } - } - // using Base::truncate; // using Base::destroyAll; // using Base::assign;