Skip to content

Commit

Permalink
netsocket: remove unused socketReadDisconnected() function
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Solodovnikov <[email protected]>
  • Loading branch information
ManManson authored and past-due committed Oct 21, 2024
1 parent d0296f1 commit 1eb326f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions lib/netplay/netsocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,11 +632,6 @@ net::result<ssize_t> readNoInt(Socket& sock, void *buf, size_t max_size, size_t
return received;
}

bool socketReadDisconnected(const Socket& sock)
{
return sock.readDisconnected;
}

/**
* Similar to write(2) with the exception that this function will block until
* <em>all</em> data has been written or an error occurs.
Expand Down
1 change: 0 additions & 1 deletion lib/netplay/netsocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ bool socketSetTCPNoDelay(Socket& sock, bool nodelay); ///< nodelay = true disabl

// Sockets, compressed.
void socketBeginCompression(Socket& sock); ///< Makes future data sent compressed, and future data received expected to be compressed.
bool socketReadDisconnected(const Socket& sock); ///< If readNoInt returned 0, returns true if this is the result of a disconnect, or false if the input compressed data just hasn't produced any output bytes.
void socketFlush(Socket& sock, uint8_t player, size_t *rawByteCount = nullptr); ///< Actually sends the data written with writeAll. Only useful on compressed sockets. Note that flushing too often makes compression less effective. Raw count of bytes (after compression) returned in rawByteCount.

// Socket sets.
Expand Down

0 comments on commit 1eb326f

Please sign in to comment.