From 67a7c912202d7f06db593f2a4547695d2b682b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Mon, 22 Jul 2019 13:07:50 +0000 Subject: [PATCH] Remove old code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- mud.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/mud.c b/mud.c index 517e7b3..979af38 100644 --- a/mud.c +++ b/mud.c @@ -1553,15 +1553,9 @@ mud_send(struct mud *mud, const void *data, size_t size, unsigned tc) return -1; } - unsigned k = tc >> 8; - - if (!k) { - const unsigned a = packet[packet_size - 1]; - const unsigned b = packet[packet_size - 2]; - k = (a << 8) | b; - } else { - k--; - } + const unsigned a = packet[packet_size - 1]; + const unsigned b = packet[packet_size - 2]; + const unsigned k = (a << 8) | b; return mud_send_path(mud, mud_select_path(mud, k), now, packet, (size_t)packet_size, tc & 255, 0);