From 6e32a58428fc0cf95dd3c7cae6286be5ce44a833 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 27 May 2014 11:26:38 -0700 Subject: 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 --- src/corelib/tools/qmap.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/corelib/tools/qmap.h') diff --git a/src/corelib/tools/qmap.h b/src/corelib/tools/qmap.h index 76f8bd6f17..d7bd9c739c 100644 --- a/src/corelib/tools/qmap.h +++ b/src/corelib/tools/qmap.h @@ -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(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 @@ -121,9 +118,6 @@ struct QMapNode : public QMapNodeBase inline QMapNode *nextNode() { return static_cast(QMapNodeBase::nextNode()); } inline QMapNode *previousNode() { return static_cast(QMapNodeBase::previousNode()); } - QMapNode *minimumNode() { return static_cast(QMapNodeBase::minimumNode()); } - const QMapNode *minimumNode() const { return static_cast(QMapNodeBase::minimumNode()); } - QMapNode *copy(QMapData *d) const; void destroySubTree(); -- cgit v1.2.3