QMap - remove unused maximumNode() functions
QMap has 4 different maximumNode() functions, but they are all unused and just in the way. Change-Id: I012145cfae32898830ec95e229514d9be838ae2f Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
This commit is contained in:
parent
0ed3cf2a1c
commit
ffc60160d2
@ -102,9 +102,7 @@ struct Q_CORE_EXPORT QMapNodeBase
|
|||||||
void setParent(QMapNodeBase *pp) { p = (p & Mask) | quintptr(pp); }
|
void setParent(QMapNodeBase *pp) { p = (p & Mask) | quintptr(pp); }
|
||||||
|
|
||||||
QMapNodeBase *minimumNode() { QMapNodeBase *n = this; while (n->left) n = n->left; return n; }
|
QMapNodeBase *minimumNode() { QMapNodeBase *n = this; while (n->left) n = n->left; return n; }
|
||||||
QMapNodeBase *maximumNode() { QMapNodeBase *n = this; while (n->right) n = n->right; return n; }
|
|
||||||
const QMapNodeBase *minimumNode() const { const QMapNodeBase *n = this; while (n->left) n = n->left; return n; }
|
const QMapNodeBase *minimumNode() const { const QMapNodeBase *n = this; while (n->left) n = n->left; return n; }
|
||||||
const QMapNodeBase *maximumNode() const { const QMapNodeBase *n = this; while (n->right) n = n->right; return n; }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class Key, class T>
|
template <class Key, class T>
|
||||||
@ -122,9 +120,7 @@ struct QMapNode : public QMapNodeBase
|
|||||||
inline QMapNode *previousNode() { return static_cast<QMapNode *>(QMapNodeBase::previousNode()); }
|
inline QMapNode *previousNode() { return static_cast<QMapNode *>(QMapNodeBase::previousNode()); }
|
||||||
|
|
||||||
QMapNode *minimumNode() { return static_cast<QMapNode *>(QMapNodeBase::minimumNode()); }
|
QMapNode *minimumNode() { return static_cast<QMapNode *>(QMapNodeBase::minimumNode()); }
|
||||||
QMapNode *maximumNode() { return static_cast<QMapNode *>(QMapNodeBase::maximumNode()); }
|
|
||||||
const QMapNode *minimumNode() const { return static_cast<QMapNode *>(QMapNodeBase::minimumNode()); }
|
const QMapNode *minimumNode() const { return static_cast<QMapNode *>(QMapNodeBase::minimumNode()); }
|
||||||
const QMapNode *maximumNode() const { return static_cast<QMapNode *>(QMapNodeBase::maximumNode()); }
|
|
||||||
|
|
||||||
QMapNode<Key, T> *copy(QMapData<Key, T> *d) const;
|
QMapNode<Key, T> *copy(QMapData<Key, T> *d) const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user