From bc18fafffd95cdecc093c50fc463060dfb56f0cb Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 4 May 2016 12:48:35 +0200 Subject: [PATCH] QmlProfiler: Drop duration from QmlEvent It isn't used anymore. Change-Id: I432bebbd9ddde15baa22a17d339ac724ddb5fe59 Reviewed-by: Joerg Bornemann --- src/plugins/qmlprofiler/qmlevent.h | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/src/plugins/qmlprofiler/qmlevent.h b/src/plugins/qmlprofiler/qmlevent.h index 5ba4a8d33c4..1f2fe202078 100644 --- a/src/plugins/qmlprofiler/qmlevent.h +++ b/src/plugins/qmlprofiler/qmlevent.h @@ -37,33 +37,31 @@ namespace QmlProfiler { struct QmlEvent { - QmlEvent() : m_timestamp(-1), m_duration(0), m_typeIndex(-1), m_dataType(Inline8Bit), - m_dataLength(0) {} + QmlEvent() : m_timestamp(-1), m_typeIndex(-1), m_dataType(Inline8Bit), m_dataLength(0) {} template - QmlEvent(qint64 timestamp, qint64 duration, int typeIndex, std::initializer_list list) - : m_timestamp(timestamp), m_duration(duration), m_typeIndex(typeIndex) + QmlEvent(qint64 timestamp, int typeIndex, std::initializer_list list) + : m_timestamp(timestamp), m_typeIndex(typeIndex) { assignNumbers, Number>(list); } - QmlEvent(qint64 timestamp, qint64 duration, int typeIndex, const QString &data) - : m_timestamp(timestamp), m_duration(duration), m_typeIndex(typeIndex) + QmlEvent(qint64 timestamp, int typeIndex, const QString &data) + : m_timestamp(timestamp), m_typeIndex(typeIndex) { assignNumbers(data.toUtf8()); } template - QmlEvent(qint64 timestamp, qint64 duration, int typeIndex, const QVector &data) - : m_timestamp(timestamp), m_duration(duration), m_typeIndex(typeIndex) + QmlEvent(qint64 timestamp, int typeIndex, const QVector &data) + : m_timestamp(timestamp), m_typeIndex(typeIndex) { assignNumbers, Number>(data); } QmlEvent(const QmlEvent &other) - : m_timestamp(other.m_timestamp), m_duration(other.m_duration), - m_typeIndex(other.m_typeIndex), m_dataType(other.m_dataType), - m_dataLength(other.m_dataLength) + : m_timestamp(other.m_timestamp), m_typeIndex(other.m_typeIndex), + m_dataType(other.m_dataType), m_dataLength(other.m_dataLength) { assignData(other); } @@ -73,7 +71,6 @@ struct QmlEvent { if (this != &other) { clearPointer(); m_timestamp = other.m_timestamp; - m_duration = other.m_duration; m_typeIndex = other.m_typeIndex; m_dataType = other.m_dataType; m_dataLength = other.m_dataLength; @@ -90,9 +87,6 @@ struct QmlEvent { qint64 timestamp() const { return m_timestamp; } void setTimestamp(qint64 timestamp) { m_timestamp = timestamp; } - qint64 duration() const { return m_duration; } - void setDuration(qint64 duration) { m_duration = duration; } - int typeIndex() const { return m_typeIndex; } void setTypeIndex(int typeIndex) { m_typeIndex = typeIndex; } @@ -213,7 +207,6 @@ private: }; qint64 m_timestamp; - qint64 m_duration; static const int s_internalDataLength = 8; union {