Remove unused private members [tools]

Apple Clang 4.2 caught private members that aren't used in a class
with no friends. Since this code is in a tool, there's no binary
compatibility requirement.

databaseinfo.h:71:13: error: private field 'driver' is not used [-Werror,-Wunused-private-field]
quoter.h:86:10: error: private field 'validRegExp' is not used [-Werror,-Wunused-private-field]
qmlvisitor.h:123:11: error: private field 'tree' is not used [-Werror,-Wunused-private-field]

Change-Id: Iba9995f28ddef983c9ffc1dc551f042539252704
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Thiago Macieira 2013-03-21 14:22:46 -07:00 committed by The Qt Project
parent e9760f1559
commit 6a11dd1669
5 changed files with 2 additions and 7 deletions

View File

@ -120,7 +120,6 @@ private:
QSet<QString> commands;
QSet<QString> topics;
QSet<quint32> usedComments;
Tree *tree;
InnerNode *current;
};

View File

@ -83,7 +83,6 @@ private:
int unindent = 0);
bool silent;
bool validRegExp;
QStringList plainLines;
QStringList markedLines;
Location codeLocation;

View File

@ -46,8 +46,7 @@
QT_BEGIN_NAMESPACE
DatabaseInfo::DatabaseInfo(Driver *drv)
: driver(drv)
DatabaseInfo::DatabaseInfo()
{
}

View File

@ -53,7 +53,7 @@ class Driver;
class DatabaseInfo : public TreeWalker
{
public:
DatabaseInfo(Driver *driver);
DatabaseInfo();
void acceptUI(DomUI *node);
void acceptWidget(DomWidget *node);
@ -68,7 +68,6 @@ public:
{ return m_fields.value(connection); }
private:
Driver *driver;
QStringList m_connections;
QMap<QString, QStringList> m_cursors;
QMap<QString, QStringList> m_fields;

View File

@ -67,7 +67,6 @@ Uic::Uic(Driver *d)
: drv(d),
out(d->output()),
opt(d->option()),
info(d),
externalPix(true)
{
}