QmlProfiler: Remove some dead code

Change-Id: I2efd48a4dc13cc3996eda994eb4a046c101ad3e9
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-09-11 13:43:23 +02:00
parent fe2d9e2a3b
commit 89f1c0bf53
5 changed files with 5 additions and 39 deletions

View File

@@ -311,12 +311,6 @@ void QmlProfilerClientManager::qmlComplete(qint64 maximumTime)
d->modelManager->acquiringDone();
}
void QmlProfilerClientManager::stopClientsRecording()
{
if (d->qmlclientplugin)
d->qmlclientplugin.data()->setRecording(false);
}
void QmlProfilerClientManager::registerProfilerStateManager( QmlProfilerStateManager *profilerState )
{
if (d->profilerState) {
@@ -342,10 +336,12 @@ void QmlProfilerClientManager::profilerStateChanged()
QTC_ASSERT(d->profilerState, return);
switch (d->profilerState->currentState()) {
case QmlProfilerStateManager::AppStopRequested :
if (d->profilerState->serverRecording())
stopClientsRecording();
else
if (d->profilerState->serverRecording()) {
if (d->qmlclientplugin)
d->qmlclientplugin.data()->setRecording(false);
} else {
d->profilerState->setCurrentState(QmlProfilerStateManager::AppReadyToStop);
}
break;
default:
break;

View File

@@ -189,8 +189,6 @@ QmlProfilerEventsWidget::QmlProfilerEventsWidget(QWidget *parent,
setObjectName(QLatin1String("QmlProfilerEventsView"));
d->modelProxy = new QmlProfilerEventsModelProxy(profilerModelManager, this);
connect(profilerModelManager, SIGNAL(stateChanged()),
this, SLOT(profilerDataModelStateChanged()));
d->m_eventTree = new QmlProfilerEventsMainView(this, d->modelProxy);
connect(d->m_eventTree, SIGNAL(gotoSourceLocation(QString,int,int)), this, SIGNAL(gotoSourceLocation(QString,int,int)));
@@ -236,10 +234,6 @@ QmlProfilerEventsWidget::~QmlProfilerEventsWidget()
delete d;
}
void QmlProfilerEventsWidget::profilerDataModelStateChanged()
{
}
void QmlProfilerEventsWidget::clear()
{
d->m_eventTree->clear();
@@ -441,10 +435,6 @@ QmlProfilerEventsMainView::~QmlProfilerEventsMainView()
delete d;
}
void QmlProfilerEventsMainView::profilerDataModelStateChanged()
{
}
void QmlProfilerEventsMainView::setFieldViewable(Fields field, bool show)
{
if (field < MaxFields) {

View File

@@ -109,9 +109,6 @@ public slots:
void selectBySourceLocation(const QString &filename, int line, int column);
void onVisibleFeaturesChanged(quint64 features);
private slots:
void profilerDataModelStateChanged();
protected:
void contextMenuEvent(QContextMenuEvent *ev);
virtual void resizeEvent(QResizeEvent *event);
@@ -157,9 +154,6 @@ public slots:
void buildModel();
void updateNotes(int typeIndex);
private slots:
void profilerDataModelStateChanged();
private:
void selectItem(const QStandardItem *item);
void setHeaderLabels();

View File

@@ -232,18 +232,6 @@ void QmlProfilerRunControl::wrongSetupMessageBoxFinished(int button)
}
}
void QmlProfilerRunControl::showNonmodalWarning(const QString &warningMsg)
{
QMessageBox *noExecWarning = new QMessageBox(ICore::mainWindow());
noExecWarning->setIcon(QMessageBox::Warning);
noExecWarning->setWindowTitle(tr("QML Profiler"));
noExecWarning->setText(warningMsg);
noExecWarning->setStandardButtons(QMessageBox::Ok);
noExecWarning->setDefaultButton(QMessageBox::Ok);
noExecWarning->setModal(false);
noExecWarning->show();
}
void QmlProfilerRunControl::notifyRemoteSetupDone(quint16 port)
{
d->m_noDebugOutputTimer.stop();

View File

@@ -49,8 +49,6 @@ public:
void registerProfilerStateManager( QmlProfilerStateManager *profilerState );
static void showNonmodalWarning(const QString &warningMsg);
void notifyRemoteSetupDone(quint16 port);
signals: