Severity: Low
Several code paths are effectively dead:
cli.rs defines Send/Receive commands with clap, but main.rs ignores them (empty match arms)
SendState::Done is defined but never transitioned to
SendState::Confirming(DiscoveryPeer) is defined but the TUI goes directly from Discovery to Transferring
ReceiveState::Listening(u16) stores a port but the Receive tab has no actual receive flow yet
- Large blocks of commented-out code in
tcp_send.rs (lines 216-245) should be removed
Affected Files
src/cli.rs (entire file)
src/ui/mod.rs (line 44: Confirming, line 45: Done)
src/protocol/tcp_send.rs (lines 216-245)
Suggested Fix
- Either implement the CLI flow or remove the module
- Replace unused enum variants with TODO comments or remove them
- Clean up dead code blocks
Issue filed by Hermes — automated code audit
Severity: Low
Several code paths are effectively dead:
cli.rsdefinesSend/Receivecommands withclap, butmain.rsignores them (empty match arms)SendState::Doneis defined but never transitioned toSendState::Confirming(DiscoveryPeer)is defined but the TUI goes directly fromDiscoverytoTransferringReceiveState::Listening(u16)stores a port but the Receive tab has no actual receive flow yettcp_send.rs(lines 216-245) should be removedAffected Files
src/cli.rs(entire file)src/ui/mod.rs(line 44:Confirming, line 45:Done)src/protocol/tcp_send.rs(lines 216-245)Suggested Fix
Issue filed by Hermes — automated code audit