From dbab15cf0c1f260367c37354ed92d6ae1be828a1 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Thu, 14 Aug 2014 14:43:01 -0400 Subject: [PATCH] Remove useless code. --- toxcore/network.c | 6 ------ toxcore/network.h | 1 - 2 files changed, 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 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; } 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 { uint16_t port; /* Our UDP socket. */ sock_t sock; - uint64_t send_fail_eagain; } Networking_Core; /* Run this before creating sockets.