From eadeabe59ee587ddc659f1981d9d5e32b3f3b3f3 Mon Sep 17 00:00:00 2001 From: Ulf Hermann <ulf.hermann@digia.com> Date: Thu, 21 Nov 2013 15:14:12 +0100 Subject: [PATCH] QmlProfiler: Remover some dead code As the timeline cannot show out of bounds areas anymore we can remove the code which draws the background for them. Change-Id: Ifedfc10b67bd4ce2e2a4bb2cbdcc03b877472a92 Reviewed-by: Kai Koehne <kai.koehne@digia.com> --- src/plugins/qmlprofiler/qml/TimeMarks.qml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/plugins/qmlprofiler/qml/TimeMarks.qml b/src/plugins/qmlprofiler/qml/TimeMarks.qml index 6d48cbb0146..433d35578ff 100644 --- a/src/plugins/qmlprofiler/qml/TimeMarks.qml +++ b/src/plugins/qmlprofiler/qml/TimeMarks.qml @@ -82,22 +82,6 @@ Canvas2D { ctxt.stroke(); } } - - - // gray off out-of-bounds areas - var rectWidth; - if (startTime < qmlProfilerModelProxy.traceStartTime()) { - ctxt.fillStyle = "rgba(127,127,127,0.2)"; - rectWidth = (qmlProfilerModelProxy.traceStartTime() - startTime) * spacing; - ctxt.fillRect(0, lineStart, rectWidth, lineEnd); - } - if (endTime > qmlProfilerModelProxy.traceEndTime()) { - ctxt.fillStyle = "rgba(127,127,127,0.2)"; - var rectX = (qmlProfilerModelProxy.traceEndTime() - startTime) * spacing; - rectWidth = (endTime - qmlProfilerModelProxy.traceEndTime()) * spacing; - ctxt.fillRect(rectX, lineStart, rectWidth, lineEnd); - } - } function updateMarks(start, end) { -- GitLab