From 936ede3b1142a72e44900c33378638cc1dfb54ec Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sun, 25 Oct 2026 03:29:46 +0100 Subject: Remove dead code left over from refactoring --- ot_stats.c | 8 -------- ot_udp.c | 3 --- 2 files changed, 11 deletions(-) diff --git a/ot_stats.c b/ot_stats.c index 7945f4e..f938e91 100644 --- a/ot_stats.c +++ b/ot_stats.c @@ -206,10 +206,6 @@ static size_t stats_return_busy_networks(char *reply, stats_network_node *tree, r += sprintf(r, "%08zd: ", scores[i - 1]); // #ifdef WANT_V6 r += ip_format(r, networks[i - 1]); -#if 0 - // XXX - r += fmt_ip4( r, networks[i - 1]); -#endif *r++ = '\n'; } } @@ -663,10 +659,6 @@ void stats_issue_event(ot_status_event event, PROTO_FLAG proto, uintptr_t event_ } ip_readable[ip_format(ip_readable, (char *)&ws->peer)] = 0; -#if 0 - /* XXX */ - ip_readable[ fmt_ip4( ip_readable, (char*)&ws->peer ) ] = 0; -#endif syslog(LOG_INFO, "time=%s event=completed info_hash=%s peer_id=%s ip=%s", timestring, hash_hex, peerid_hex, ip_readable); } #endif diff --git a/ot_udp.c b/ot_udp.c index e80f4e7..dc8267c 100644 --- a/ot_udp.c +++ b/ot_udp.c @@ -22,9 +22,6 @@ #include "ot_udp.h" #include "trackerlogic.h" -#if 0 -static const uint8_t g_static_connid[8] = { 0x23, 0x42, 0x05, 0x17, 0xde, 0x41, 0x50, 0xff }; -#endif static uint32_t g_rijndael_round_key[44] = {0}; static volatile uint32_t g_key_of_the_hour[2] = {0}; static volatile ot_time g_hour_of_the_key; -- cgit v1.3