remove unused code, remove warning
This commit is contained in:
parent
6093e928bd
commit
36c5a368de
2
ikcp.c
2
ikcp.c
@ -749,7 +749,7 @@ int ikcp_input(ikcpcb *kcp, const char *data, long size)
|
|||||||
ikcp_log(kcp, IKCP_LOG_INPUT, "[RI] %d bytes", size);
|
ikcp_log(kcp, IKCP_LOG_INPUT, "[RI] %d bytes", size);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data == NULL || size < IKCP_OVERHEAD) return -1;
|
if (data == NULL || (int)size < (int)IKCP_OVERHEAD) return -1;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
IUINT32 ts, sn, len, una, conv;
|
IUINT32 ts, sn, len, una, conv;
|
||||||
|
2
ikcp.h
2
ikcp.h
@ -385,8 +385,6 @@ int ikcp_waitsnd(const ikcpcb *kcp);
|
|||||||
// nc: 0:normal congestion control(default), 1:disable congestion control
|
// nc: 0:normal congestion control(default), 1:disable congestion control
|
||||||
int ikcp_nodelay(ikcpcb *kcp, int nodelay, int interval, int resend, int nc);
|
int ikcp_nodelay(ikcpcb *kcp, int nodelay, int interval, int resend, int nc);
|
||||||
|
|
||||||
int ikcp_rcvbuf_count(const ikcpcb *kcp);
|
|
||||||
int ikcp_sndbuf_count(const ikcpcb *kcp);
|
|
||||||
|
|
||||||
void ikcp_log(ikcpcb *kcp, int mask, const char *fmt, ...);
|
void ikcp_log(ikcpcb *kcp, int mask, const char *fmt, ...);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user