forked from qt-creator/qt-creator
Debugger: Remove some unused functions from WatchHandler
Change-Id: I8be7b06c44ebb83385ecb9cc8b5c9aa684d97458 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
@@ -982,14 +982,6 @@ QString WatchModel::displayType(const WatchData &data) const
|
||||
return result;
|
||||
}
|
||||
|
||||
QString WatchModel::displayForAutoTest(const QByteArray &iname) const
|
||||
{
|
||||
WatchItem *item = findItem(iname);
|
||||
if (item)
|
||||
return displayValue(*item) + QLatin1Char(' ') + displayType(*item);
|
||||
return QString();
|
||||
}
|
||||
|
||||
QVariant WatchModel::data(const QModelIndex &idx, int role) const
|
||||
{
|
||||
if (!idx.isValid())
|
||||
@@ -1880,20 +1872,6 @@ void WatchHandler::loadSessionData()
|
||||
watchExpression(exp);
|
||||
}
|
||||
|
||||
void WatchHandler::updateWatchers()
|
||||
{
|
||||
m_model->destroyChildren(m_model->m_watchRoot);
|
||||
// Copy over all watchers and mark all watchers as incomplete.
|
||||
foreach (const QByteArray &exp, theWatcherNames.keys()) {
|
||||
WatchData data;
|
||||
data.iname = watcherName(exp);
|
||||
data.setAllNeeded();
|
||||
data.name = QLatin1String(exp);
|
||||
data.exp = exp;
|
||||
insertIncompleteData(data);
|
||||
}
|
||||
}
|
||||
|
||||
QAbstractItemModel *WatchHandler::model() const
|
||||
{
|
||||
return m_model;
|
||||
@@ -1928,11 +1906,6 @@ const WatchData *WatchHandler::findCppLocalVariable(const QString &name) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
QString WatchHandler::displayForAutoTest(const QByteArray &iname) const
|
||||
{
|
||||
return m_model->displayForAutoTest(iname);
|
||||
}
|
||||
|
||||
bool WatchHandler::hasItem(const QByteArray &iname) const
|
||||
{
|
||||
return m_model->findItem(iname);
|
||||
@@ -2022,11 +1995,6 @@ QString WatchHandler::editorContents()
|
||||
return contents;
|
||||
}
|
||||
|
||||
void WatchHandler::removeTooltip()
|
||||
{
|
||||
m_model->destroyChildren(m_model->m_tooltipRoot);
|
||||
}
|
||||
|
||||
void WatchHandler::setTypeFormats(const TypeFormats &typeFormats)
|
||||
{
|
||||
m_model->m_reportedTypeFormats = typeFormats;
|
||||
|
||||
Reference in New Issue
Block a user