From 58a5aa3a09c39355081e45c34d6cc02dd8ac5733 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 12 Jun 2015 10:17:56 +0200 Subject: [PATCH] qmlprofiler: Remove some dead code Change-Id: If1f542bc73d5af259ea3c0a5da40786f8d6f3dbf Reviewed-by: Joerg Bornemann --- tools/qmlprofiler/qmlprofilerapplication.cpp | 7 +------ tools/qmlprofiler/qmlprofilerapplication.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/tools/qmlprofiler/qmlprofilerapplication.cpp b/tools/qmlprofiler/qmlprofilerapplication.cpp index 02dabea6e5..8633810790 100644 --- a/tools/qmlprofiler/qmlprofilerapplication.cpp +++ b/tools/qmlprofiler/qmlprofilerapplication.cpp @@ -73,13 +73,10 @@ static const char *features[] = { "inputevents" }; -static const char TraceFileExtension[] = ".qtd"; - QmlProfilerApplication::QmlProfilerApplication(int &argc, char **argv) : QCoreApplication(argc, argv), m_runMode(LaunchMode), m_process(0), - m_tracePrefix(QLatin1String("trace")), m_hostName(QLatin1String("127.0.0.1")), m_port(3768), m_pendingRequest(REQUEST_NONE), @@ -268,10 +265,8 @@ void QmlProfilerApplication::parseArguments() m_verbose = true; m_programArguments = parser.positionalArguments(); - if (!m_programArguments.isEmpty()) { + if (!m_programArguments.isEmpty()) m_programPath = m_programArguments.takeFirst(); - m_tracePrefix = QFileInfo(m_programPath).fileName(); - } if (m_runMode == LaunchMode && m_programPath.isEmpty()) { logError(tr("You have to specify either --attach or a program to start.")); diff --git a/tools/qmlprofiler/qmlprofilerapplication.h b/tools/qmlprofiler/qmlprofilerapplication.h index 25d9cf136d..f1bf6c3e93 100644 --- a/tools/qmlprofiler/qmlprofilerapplication.h +++ b/tools/qmlprofiler/qmlprofilerapplication.h @@ -104,7 +104,6 @@ private: QString m_programPath; QStringList m_programArguments; QProcess *m_process; - QString m_tracePrefix; QString m_hostName; quint16 m_port;