diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-25 03:29:46 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-25 03:29:46 +0100 |
| commit | 936ede3b1142a72e44900c33378638cc1dfb54ec (patch) | |
| tree | 3818c9ea81d34c42bb08d12bdf1530eab3634515 /ot_stats.c | |
| parent | d3f528389af1f3189e253f15896a5ef28c26811d (diff) | |
Remove dead code left over from refactoring
Diffstat (limited to 'ot_stats.c')
| -rw-r--r-- | ot_stats.c | 8 |
1 files changed, 0 insertions, 8 deletions
| @@ -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 |
