summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qarraydataops.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-11-13 12:03:16 +0100
committerLars Knoll <lars.knoll@qt.io>2020-11-17 11:47:49 +0100
commitcadfed83acd392bb9dde6dded241aeefabc235ec (patch)
tree60d092ca917563d1c0f1a64b7668bd3e8e2307e5 /src/corelib/tools/qarraydataops.h
parenta1f3be3e41f70b0dc39abe6ccdab9a493bd9b32f (diff)
Remove unused method
Change-Id: I22738a3d5f1ad3dc4e5f542f4102dfac0491a241 Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qarraydataops.h')
-rw-r--r--src/corelib/tools/qarraydataops.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/corelib/tools/qarraydataops.h b/src/corelib/tools/qarraydataops.h
index 7b55406ac2..b157e2d733 100644
--- a/src/corelib/tools/qarraydataops.h
+++ b/src/corelib/tools/qarraydataops.h
@@ -890,28 +890,6 @@ protected:
using Self = QCommonArrayOps<T>;
public:
-
- // does the iterator point into this array?
- template <typename It>
- bool iteratorPointsIntoArray(const It &it)
- {
- using DecayedIt = std::decay_t<It>;
- using RemovedConstVolatileIt = std::remove_cv_t<It>;
- constexpr bool selfIterator =
- // if passed type is an iterator type:
- std::is_same_v<DecayedIt, iterator>
- || std::is_same_v<DecayedIt, const_iterator>
- // if passed type is a pointer type:
- || std::is_same_v<RemovedConstVolatileIt, T *>
- || std::is_same_v<RemovedConstVolatileIt, const T *>
- || std::is_same_v<RemovedConstVolatileIt, const volatile T *>;
- if constexpr (selfIterator) {
- return (it >= this->begin() && it <= this->end());
- } else {
- return false;
- }
- }
-
// using Base::truncate;
// using Base::destroyAll;
// using Base::assign;