aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-06-02 17:25:26 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-06-06 14:51:46 +0000
commitbcbfd93ee7db6f585e18199820dec92b34f3d995 (patch)
treececf6313407bdac493c8aed3dc88d3f1fe000bf5 /src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
parent16bf9227badf62a24cbcc492f2fde9ff8f09b9fa (diff)
QmlProfiler: Remove QmlProfilerPlugin::debugOutput
I doubt that anyone has ever used it. Change-Id: Icf8c6513f5cdd10a9aa790e7373df9eba7c12ef2 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/localqmlprofilerrunner.cpp')
-rw-r--r--src/plugins/qmlprofiler/localqmlprofilerrunner.cpp21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
index 9b92d2a6a4..fed76e6a33 100644
--- a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
+++ b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
@@ -97,15 +97,6 @@ void LocalQmlProfilerRunner::start()
runnable.commandLineArguments = arguments;
runnable.runMode = ApplicationLauncher::Gui;
- if (QmlProfilerPlugin::debugOutput) {
- QString portOrSocket = m_configuration.socket.isEmpty() ?
- QString::number(m_configuration.port.isValid() ?
- m_configuration.port.number() : -1) :
- m_configuration.socket;
- qWarning("QmlProfiler: Launching %s:%s", qPrintable(m_configuration.debuggee.executable),
- qPrintable(portOrSocket));
- }
-
// queue this, as the process can already die in the call to start().
// We want the started() signal to be emitted before the stopped() signal.
connect(&m_launcher, &ApplicationLauncher::processExited,
@@ -118,13 +109,8 @@ void LocalQmlProfilerRunner::start()
void LocalQmlProfilerRunner::spontaneousStop(int exitCode, QProcess::ExitStatus status)
{
- if (QmlProfilerPlugin::debugOutput) {
- if (status == QProcess::CrashExit)
- qWarning("QmlProfiler: Application crashed.");
- else
- qWarning("QmlProfiler: Application exited (exit code %d).", exitCode);
- }
-
+ Q_UNUSED(exitCode);
+ Q_UNUSED(status);
disconnect(&m_launcher, &ApplicationLauncher::processExited,
this, &LocalQmlProfilerRunner::spontaneousStop);
@@ -133,9 +119,6 @@ void LocalQmlProfilerRunner::spontaneousStop(int exitCode, QProcess::ExitStatus
void LocalQmlProfilerRunner::stop()
{
- if (QmlProfilerPlugin::debugOutput)
- qWarning("QmlProfiler: Stopping application ...");
-
if (m_launcher.isRunning())
m_launcher.stop();
}