Skip to content

Commit

Permalink
added some useful comments
Browse files Browse the repository at this point in the history
removed unused imports
  • Loading branch information
BNTFryingPan committed Aug 5, 2022
1 parent 9be47f7 commit fd16301
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions build.hxml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-p src
-m Main
-L uuid
# i might remove `uuid` as a dependancy at some point
--cpp ./build/
--cmd ./test.sh
1 change: 0 additions & 1 deletion src/Connection.hx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import packet.serverbound.HandshakePacket;
import haxe.io.Output;
import haxe.io.Input;
import packet.serverbound.ServerboundPacket;
import cpp.vm.Debugger.ThreadInfo;
import sys.thread.Thread;
import sys.net.Socket;

Expand Down
6 changes: 5 additions & 1 deletion src/UnitTest.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ package;

import haxe.io.BytesOutput;
import haxe.io.BytesInput;
import haxe.io.Bytes;

using StringTools;
using VarIntLong;


/**
i made this to sanity check my parsing of var ints. it worked fine.
but this testing code sucks and should probably be improved at some point
**/
class UnitTest {
public static function main() {
testVarInt(0);
Expand Down
2 changes: 0 additions & 2 deletions src/entity/Player.hx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package entity;

import uuid.Uuid;

class Player extends Entity {
public var uuid:String;
public var name:String;
Expand Down
2 changes: 0 additions & 2 deletions src/packet/clientbound/LoginSuccessPacket.hx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package packet.clientbound;

import haxe.io.BytesOutput;

using VarIntLong;

class LoginSuccessPacket extends ClientboundPacket {
Expand Down
1 change: 0 additions & 1 deletion src/packet/clientbound/StatusResponsePacket.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package packet.clientbound;

import haxe.io.BytesOutput;
import haxe.Json;
import haxe.io.Output;

using VarIntLong;

Expand Down
1 change: 0 additions & 1 deletion src/packet/serverbound/HandshakePacket.hx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package packet.serverbound;

import packet.clientbound.StatusResponsePacket;
import haxe.io.Input;

using VarIntLong;
Expand Down
1 change: 0 additions & 1 deletion src/packet/serverbound/LoginStartPacket.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package packet.serverbound;

import haxe.Int64;
import haxe.io.Bytes;
import haxe.io.Input;

using VarIntLong;

Expand Down
1 change: 0 additions & 1 deletion src/packet/serverbound/PingRequestPacket.hx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package packet.serverbound;

import haxe.io.Bytes;
import haxe.Int64;
import haxe.io.Input;

class PingRequestPacket extends ServerboundPacket {
Expand Down

0 comments on commit fd16301

Please sign in to comment.