mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Remove useless code.
This commit is contained in:
parent
78dd2234e0
commit
dbab15cf0c
|
@ -338,12 +338,6 @@ int sendpacket(Networking_Core *net, IP_Port ip_port, const uint8_t *data, uint3
|
||||||
|
|
||||||
loglogdata("O=>", data, length, ip_port, res);
|
loglogdata("O=>", data, length, ip_port, res);
|
||||||
|
|
||||||
|
|
||||||
if ((res >= 0) && ((uint32_t)res == length))
|
|
||||||
net->send_fail_eagain = 0;
|
|
||||||
else if ((res < 0) && (errno == EWOULDBLOCK))
|
|
||||||
net->send_fail_eagain = current_time_monotonic();
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -296,7 +296,6 @@ typedef struct {
|
||||||
uint16_t port;
|
uint16_t port;
|
||||||
/* Our UDP socket. */
|
/* Our UDP socket. */
|
||||||
sock_t sock;
|
sock_t sock;
|
||||||
uint64_t send_fail_eagain;
|
|
||||||
} Networking_Core;
|
} Networking_Core;
|
||||||
|
|
||||||
/* Run this before creating sockets.
|
/* Run this before creating sockets.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user