Remove duplicate code

This commit is contained in:
Cameron Gutman 2014-04-07 18:51:01 -04:00
parent eb15599c01
commit a0237a19d9

View File

@ -26,15 +26,6 @@ public class KeyboardPacket extends InputPacket {
this.modifier = modifier; this.modifier = modifier;
} }
public byte[] toWireHeader()
{
ByteBuffer bb = ByteBuffer.allocate(4).order(ByteOrder.BIG_ENDIAN);
bb.putInt(packetType);
return bb.array();
}
@Override @Override
public byte[] toWire() { public byte[] toWire() {
ByteBuffer bb = ByteBuffer.allocate(PACKET_LENGTH).order(ByteOrder.LITTLE_ENDIAN); ByteBuffer bb = ByteBuffer.allocate(PACKET_LENGTH).order(ByteOrder.LITTLE_ENDIAN);