summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-25 03:29:46 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-10-25 03:29:46 +0100
commit936ede3b1142a72e44900c33378638cc1dfb54ec (patch)
tree3818c9ea81d34c42bb08d12bdf1530eab3634515 /ot_stats.c
parentd3f528389af1f3189e253f15896a5ef28c26811d (diff)
Remove dead code left over from refactoring
Diffstat (limited to 'ot_stats.c')
-rw-r--r--ot_stats.c8
1 files changed, 0 insertions, 8 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,
206 r += sprintf(r, "%08zd: ", scores[i - 1]); 206 r += sprintf(r, "%08zd: ", scores[i - 1]);
207 // #ifdef WANT_V6 207 // #ifdef WANT_V6
208 r += ip_format(r, networks[i - 1]); 208 r += ip_format(r, networks[i - 1]);
209#if 0
210 // XXX
211 r += fmt_ip4( r, networks[i - 1]);
212#endif
213 *r++ = '\n'; 209 *r++ = '\n';
214 } 210 }
215 } 211 }
@@ -663,10 +659,6 @@ void stats_issue_event(ot_status_event event, PROTO_FLAG proto, uintptr_t event_
663 } 659 }
664 660
665 ip_readable[ip_format(ip_readable, (char *)&ws->peer)] = 0; 661 ip_readable[ip_format(ip_readable, (char *)&ws->peer)] = 0;
666#if 0
667 /* XXX */
668 ip_readable[ fmt_ip4( ip_readable, (char*)&ws->peer ) ] = 0;
669#endif
670 syslog(LOG_INFO, "time=%s event=completed info_hash=%s peer_id=%s ip=%s", timestring, hash_hex, peerid_hex, ip_readable); 662 syslog(LOG_INFO, "time=%s event=completed info_hash=%s peer_id=%s ip=%s", timestring, hash_hex, peerid_hex, ip_readable);
671 } 663 }
672#endif 664#endif