remove duplicate code
This commit is contained in:
@@ -65,15 +65,7 @@ public class WrapperByteBufNetStream implements NetStream {
|
||||
|
||||
@Override
|
||||
public void writeVarInt(final int value) {
|
||||
int v = value;
|
||||
do {
|
||||
byte write = (byte)(v & 0b01111111);
|
||||
v >>>= 7;
|
||||
if (v != 0) {
|
||||
write |= 0b10000000;
|
||||
}
|
||||
byteBuf.writeByte(write);
|
||||
} while (v != 0);
|
||||
writeVarLong(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user