Remove unused QMapNode{,Base}::minimumNode
These functions are not used anywhere. Since the classes are not documented, we're free to remove the inline functions. The implementation of the const function in QMapNode is also bogus: it discards a const qualifier. Task-number: QTBUG-39301 Change-Id: Ib8fd10a4da4b58a62cef17017ea6127c4d964325 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
5fbc1f39ae
commit
6e32a58428
@ -102,9 +102,6 @@ struct Q_CORE_EXPORT QMapNodeBase
|
||||
void setColor(Color c) { if (c == Black) p |= Black; else p &= ~Black; }
|
||||
QMapNodeBase *parent() const { return reinterpret_cast<QMapNodeBase *>(p & ~Mask); }
|
||||
void setParent(QMapNodeBase *pp) { p = (p & Mask) | quintptr(pp); }
|
||||
|
||||
QMapNodeBase *minimumNode() { 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; }
|
||||
};
|
||||
|
||||
template <class Key, class T>
|
||||
@ -121,9 +118,6 @@ struct QMapNode : public QMapNodeBase
|
||||
inline QMapNode *nextNode() { return static_cast<QMapNode *>(QMapNodeBase::nextNode()); }
|
||||
inline QMapNode *previousNode() { return static_cast<QMapNode *>(QMapNodeBase::previousNode()); }
|
||||
|
||||
QMapNode *minimumNode() { return static_cast<QMapNode *>(QMapNodeBase::minimumNode()); }
|
||||
const QMapNode *minimumNode() const { return static_cast<QMapNode *>(QMapNodeBase::minimumNode()); }
|
||||
|
||||
QMapNode<Key, T> *copy(QMapData<Key, T> *d) const;
|
||||
|
||||
void destroySubTree();
|
||||
|
Loading…
Reference in New Issue
Block a user