Commit eadeabe5 authored by Ulf Hermann's avatar Ulf Hermann

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: default avatarKai Koehne <kai.koehne@digia.com>
parent 070de17e
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment