From 9c3bbcf4e6ece834730889b8ba2a9b47ed8f45a8 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 8 Dec 2016 10:24:56 +0100 Subject: [PATCH] removed old disabled code --- src/core/udp.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/core/udp.c b/src/core/udp.c index 5786e4f9..52830c4f 100644 --- a/src/core/udp.c +++ b/src/core/udp.c @@ -116,24 +116,6 @@ again: } } return udp_port; -#if 0 - struct udp_pcb *ipcb = udp_pcbs; - while ((ipcb != NULL) && (udp_port != UDP_LOCAL_PORT_RANGE_END)) { - if (ipcb->local_port == udp_port) { - /* port is already used by another udp_pcb */ - udp_port++; - /* restart scanning all udp pcbs */ - ipcb = udp_pcbs; - } else { - /* go on with next udp pcb */ - ipcb = ipcb->next; - } - } - if (ipcb != NULL) { - return 0; - } - return udp_port; -#endif } /** Common code to see if the current input packet matches the pcb