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

@@ -11,7 +11,6 @@ import eu.crushedpixel.replaymod.online.authentication.AuthenticationHandler;
import eu.crushedpixel.replaymod.recording.ConnectionEventHandler;
import eu.crushedpixel.replaymod.registry.*;
import eu.crushedpixel.replaymod.renderer.InvisibilityRender;
import eu.crushedpixel.replaymod.renderer.SafeEntityRenderer;
import eu.crushedpixel.replaymod.renderer.SpectatorRenderer;
import eu.crushedpixel.replaymod.replay.ReplayHandler;
import eu.crushedpixel.replaymod.replay.ReplayProcess;
@@ -125,11 +124,11 @@ public class ReplayMod {
KeybindRegistry.initialize();
try {
mc.entityRenderer = new SafeEntityRenderer(mc, mc.entityRenderer);
} catch(Exception e) {
e.printStackTrace();
}
// try {
// mc.entityRenderer = new SafeEntityRenderer(mc, mc.entityRenderer);
// } catch(Exception e) {
// e.printStackTrace();
// }
tooltipRenderer = new TooltipRenderer();

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) {