summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qmetaassociation.cpp14
-rw-r--r--src/corelib/kernel/qmetaassociation.h7
-rw-r--r--src/corelib/kernel/qmetacontainer.h2
3 files changed, 0 insertions, 23 deletions
diff --git a/src/corelib/kernel/qmetaassociation.cpp b/src/corelib/kernel/qmetaassociation.cpp
index 7fbb356d9a0..5eae6658a57 100644
--- a/src/corelib/kernel/qmetaassociation.cpp
+++ b/src/corelib/kernel/qmetaassociation.cpp
@@ -464,13 +464,6 @@ QMetaType QMetaAssociation::mappedMetaType() const
*/
/*!
- \fn QVariant::Reference<QMetaAssociation::Iterable::Iterator> QMetaAssociation::Iterable::Iterator::operator[](qsizetype n) const
- Returns the item offset from the current one by \a n, converted to a
- QVariant::Reference. The resulting QVariant::Reference resolves to the
- mapped value if there is one, or to the key value if not.
-*/
-
-/*!
\fn QVariant QMetaAssociation::Iterable::ConstIterator::key() const
Returns the key this iterator points to.
*/
@@ -494,11 +487,4 @@ QMetaType QMetaAssociation::mappedMetaType() const
iterator if there is one, or otherwise the key.
*/
-/*!
- \fn QVariant QMetaAssociation::Iterable::ConstIterator::operator[](qsizetype n) const
- Returns the item offset from the current one by \a n, converted to a
- QVariant. The returned value is the mapped value at the current iterator if
- there is one, or otherwise the key.
-*/
-
QT_END_NAMESPACE
diff --git a/src/corelib/kernel/qmetaassociation.h b/src/corelib/kernel/qmetaassociation.h
index d7b3fb65242..6d8de13e90a 100644
--- a/src/corelib/kernel/qmetaassociation.h
+++ b/src/corelib/kernel/qmetaassociation.h
@@ -41,7 +41,6 @@ public:
reference operator*() const { return reference(*this); }
pointer operator->() const { return pointer(*this); }
- reference operator[](qsizetype n) const { return reference(*this + n); }
};
class AssociativeConstIterator : public QConstIterator<QMetaAssociation>
@@ -68,7 +67,6 @@ public:
mapped_type operator*() const;
pointer operator->() const { return pointer(*this); }
- mapped_type operator[](qsizetype n) const;
};
} // namespace QtMetaContainerPrivate
@@ -126,11 +124,6 @@ inline AssociativeConstIterator::mapped_type AssociativeConstIterator::operator*
return reference(*this);
}
-inline AssociativeConstIterator::mapped_type AssociativeConstIterator::operator[](qsizetype n) const
-{
- return reference(*this + n);
-}
-
class Association : public QIterable<QMetaAssociation>
{
public:
diff --git a/src/corelib/kernel/qmetacontainer.h b/src/corelib/kernel/qmetacontainer.h
index f8e73a8b0a2..c9d3a6bf9c6 100644
--- a/src/corelib/kernel/qmetacontainer.h
+++ b/src/corelib/kernel/qmetacontainer.h
@@ -1078,7 +1078,6 @@ public:
QVariant::Reference<Iterator> operator*() const;
QVariant::Pointer<Iterator> operator->() const;
- QVariant::Reference<Iterator> operator[](qsizetype n) const;
};
class ConstIterator : public QConstIterator<QMetaAssociation>
@@ -1089,7 +1088,6 @@ public:
QVariant operator*() const;
QVariant::ConstPointer<ConstIterator> operator->() const;
- QVariant operator[](qsizetype n) const;
};
using RandomAccessIterator = Iterator;