Remove unused method in GuiTimeline

This commit is contained in:
johni0702
2015-06-14 14:13:29 +02:00
parent be4ee42dcb
commit 6d4512e74b
2 changed files with 5 additions and 12 deletions

View File

@@ -141,12 +141,6 @@ public class GuiTimeline extends Gui implements GuiElement {
drawTimelineCursor(leftTime, rightTime, bodyWidth);
}
private int getMarkerX(int timestamp, long leftTime, int bodyWidth, double segmentLength) {
long positionInSegment = timestamp - leftTime;
double fractionOfSegment = positionInSegment / segmentLength;
return (int) (positionX + BORDER_LEFT + fractionOfSegment * bodyWidth);
}
protected void drawTimelineCursor(long leftTime, long rightTime, int bodyWidth) {
// Draw the cursor if it's on the current timeline segment
if (cursorPosition >= leftTime && cursorPosition <= rightTime) {