diff options
author | irungentoo <irungentoo@gmail.com> | 2014-08-14 14:43:01 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-08-14 14:43:01 -0400 |
commit | dbab15cf0c1f260367c37354ed92d6ae1be828a1 (patch) | |
tree | 4f16796ddeeab6417097d4c1f8585ab466cb26d9 | |
parent | 78dd2234e017ea9f9e621c98ae9399caaf1f2601 (diff) |
Remove useless code.
-rw-r--r-- | toxcore/network.c | 6 | ||||
-rw-r--r-- | toxcore/network.h | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/toxcore/network.c b/toxcore/network.c index 373fef9e..55c080cd 100644 --- a/toxcore/network.c +++ b/toxcore/network.c | |||
@@ -338,12 +338,6 @@ int sendpacket(Networking_Core *net, IP_Port ip_port, const uint8_t *data, uint3 | |||
338 | 338 | ||
339 | loglogdata("O=>", data, length, ip_port, res); | 339 | loglogdata("O=>", data, length, ip_port, res); |
340 | 340 | ||
341 | |||
342 | if ((res >= 0) && ((uint32_t)res == length)) | ||
343 | net->send_fail_eagain = 0; | ||
344 | else if ((res < 0) && (errno == EWOULDBLOCK)) | ||
345 | net->send_fail_eagain = current_time_monotonic(); | ||
346 | |||
347 | return res; | 341 | return res; |
348 | } | 342 | } |
349 | 343 | ||
diff --git a/toxcore/network.h b/toxcore/network.h index da175309..1f4b757c 100644 --- a/toxcore/network.h +++ b/toxcore/network.h | |||
@@ -296,7 +296,6 @@ typedef struct { | |||
296 | uint16_t port; | 296 | uint16_t port; |
297 | /* Our UDP socket. */ | 297 | /* Our UDP socket. */ |
298 | sock_t sock; | 298 | sock_t sock; |
299 | uint64_t send_fail_eagain; | ||
300 | } Networking_Core; | 299 | } Networking_Core; |
301 | 300 | ||
302 | /* Run this before creating sockets. | 301 | /* Run this before creating sockets. |