qmlprofiler: Remove some dead code
Change-Id: If1f542bc73d5af259ea3c0a5da40786f8d6f3dbf Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
parent
9eb3015a62
commit
58a5aa3a09
|
@ -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."));
|
||||
|
|
|
@ -104,7 +104,6 @@ private:
|
|||
QString m_programPath;
|
||||
QStringList m_programArguments;
|
||||
QProcess *m_process;
|
||||
QString m_tracePrefix;
|
||||
|
||||
QString m_hostName;
|
||||
quint16 m_port;
|
||||
|
|
Loading…
Reference in New Issue