refactor: remove comments
This commit is contained in:
@@ -130,9 +130,6 @@ TCPSocket::TCPSocket(TCPSocket&& other) : Socket(TCP){
|
|||||||
|
|
||||||
void SendPacket(const DataBuffer& data, network::TCPSocket& socket){
|
void SendPacket(const DataBuffer& data, network::TCPSocket& socket){
|
||||||
DataBuffer compressed = utils::Compress(data);
|
DataBuffer compressed = utils::Compress(data);
|
||||||
/*DataBuffer buffer;
|
|
||||||
buffer.Reserve(sizeof(std::size_t) + data.GetSize());
|
|
||||||
buffer << data.GetSize() << data;*/
|
|
||||||
socket.Send((const std::uint8_t*) compressed.ToString().data(), compressed.GetSize());
|
socket.Send((const std::uint8_t*) compressed.ToString().data(), compressed.GetSize());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user