Skip to content

refactor: remove dead code from TerminalError enum#372

Merged
Wirasm merged 1 commit into
mainfrom
kild/335-dead-terminal-error
Feb 11, 2026
Merged

refactor: remove dead code from TerminalError enum#372
Wirasm merged 1 commit into
mainfrom
kild/335-dead-terminal-error

Conversation

@Wirasm

@Wirasm Wirasm commented Feb 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Remove unused PtyRead and ChannelSend variants from TerminalError
  • Remove unused impl TerminalError block (error_code(), is_user_error())
  • Remove #[allow(dead_code)] attributes that were masking genuinely dead code

These were left over from before terminal rendering was wired up in #349. All 7 actively-used variants are preserved.

Closes #335

Remove unused PtyRead and ChannelSend variants, the unused impl block
(error_code, is_user_error), and #[allow(dead_code)] attributes. These
were left over from before the terminal rendering was wired up.
@Wirasm

Wirasm commented Feb 11, 2026

Copy link
Copy Markdown
Owner Author

PR Review Summary

Critical Issues (0 found)

None.

Important Issues (0 found)

None.

Suggestions (0 found)

None.

Strengths

  • Clean dead code removal following YAGNI principle
  • All 7 remaining variants verified as actively used in state.rs
  • Removed #[allow(dead_code)] annotations that were masking genuinely unused code
  • No references to removed variants (PtyRead, ChannelSend) or methods (error_code(), is_user_error()) found anywhere in the codebase

Validation

  • cargo clippy -p kild-ui -- -D warnings — 0 warnings
  • cargo test -p kild-ui — 146 tests passed
  • cargo fmt --check -p kild-ui — clean

Verdict

READY TO MERGE

@Wirasm Wirasm merged commit fb10de9 into main Feb 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: remove dead TerminalError enum from kild-ui

1 participant