aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-06-12 10:17:56 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-06-15 09:31:13 +0000
commit58a5aa3a09c39355081e45c34d6cc02dd8ac5733 (patch)
tree28c3dad3aad5e14e964f9f2b337dc2ad35eaad9b /tools
parent9eb3015a62de9f1924c3e155e6583f0a26cc8be6 (diff)
qmlprofiler: Remove some dead code
Change-Id: If1f542bc73d5af259ea3c0a5da40786f8d6f3dbf Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlprofiler/qmlprofilerapplication.cpp7
-rw-r--r--tools/qmlprofiler/qmlprofilerapplication.h1
2 files changed, 1 insertions, 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;