Browse Source

Remove unused code from simnode.c and simrouter.c, it is now contained in sntp_example.c

master
Dirk Ziegelmeier 8 years ago
parent
commit
b4fda3eee0
  1. 10
      ports/unix/unixsim/simnode.c
  2. 13
      ports/unix/unixsim/simrouter.c

10
ports/unix/unixsim/simnode.c

@ -34,7 +34,6 @@
#include <unistd.h>
#include "lwip/mem.h"
#include "lwip/memp.h"
#include "lwip/sys.h"
@ -44,10 +43,8 @@
#include "lwip/stats.h"
#include "lwip/tcpip.h"
#include "netif/unixif.h"
#include "netif/dropif.h"
@ -167,11 +164,4 @@ main(int argc, char **argv)
#endif /* LWIP_IPV4 */
/* dummy, because SNTP is pulled in via LWIP_DHCP_GET_NTP_SRV */
void
sntp_set_system_time(u32_t sec)
{
LWIP_UNUSED_ARG(sec);
}
/*-----------------------------------------------------------------------------------*/

13
ports/unix/unixsim/simrouter.c

@ -34,7 +34,6 @@
#include <unistd.h>
#include "lwip/mem.h"
#include "lwip/memp.h"
#include "lwip/sys.h"
@ -43,18 +42,13 @@
#include "lwip/timeouts.h"
#include "lwip/stats.h"
#include "lwip/tcpip.h"
#include "netif/tapif.h"
#include "netif/unixif.h"
#include "netif/dropif.h"
#include "netif/tcpdump.h"
#include "lwip/ip_addr.h"
#include "arch/perf.h"
@ -190,11 +184,4 @@ main(int argc, char **argv)
#endif /* LWIP_IPV4 */
/* dummy, because SNTP is pulled in via LWIP_DHCP_GET_NTP_SRV */
void
sntp_set_system_time(u32_t sec)
{
LWIP_UNUSED_ARG(sec);
}
/*-----------------------------------------------------------------------------------*/

Loading…
Cancel
Save