Removed unused import and local variable in PlayerLogin.

This commit is contained in:
Joe0 2012-03-14 13:56:15 -05:00
parent cd90ec107a
commit 025614c94d

View File

@ -2,7 +2,6 @@ package org.moparscape.msc.gs.phandler;
import org.apache.mina.common.IoSession; import org.apache.mina.common.IoSession;
import org.moparscape.msc.config.Config; import org.moparscape.msc.config.Config;
import org.moparscape.msc.config.Constants;
import org.moparscape.msc.config.Formulae; import org.moparscape.msc.config.Formulae;
import org.moparscape.msc.gs.Instance; import org.moparscape.msc.gs.Instance;
import org.moparscape.msc.gs.builders.RSCPacketBuilder; import org.moparscape.msc.gs.builders.RSCPacketBuilder;
@ -44,7 +43,6 @@ public class PlayerLogin implements PacketHandler {
player.getSession().close(); player.getSession().close();
return; return;
} }
boolean newchar = false;
RSCPacketBuilder pb = new RSCPacketBuilder(); RSCPacketBuilder pb = new RSCPacketBuilder();
pb.setBare(true); pb.setBare(true);
pb.addByte(loginCode); pb.addByte(loginCode);
@ -67,7 +65,6 @@ public class PlayerLogin implements PacketHandler {
int x = p.readShort(); int x = p.readShort();
@SuppressWarnings("unused") @SuppressWarnings("unused")
int y = p.readShort(); int y = p.readShort();
newchar = true;
} else { } else {
player.setLocation( player.setLocation(
Point.location(p.readShort(), p.readShort()), true); Point.location(p.readShort(), p.readShort()), true);