forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -82,22 +82,6 @@ Canvas2D {
|
|||||||
ctxt.stroke();
|
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) {
|
function updateMarks(start, end) {
|
||||||
|
|||||||
Reference in New Issue
Block a user