Skip to content

chore: remove dead code and stale allow(dead_code) annotations#61

Merged
i-doll merged 1 commit into
mainfrom
chore/remove-dead-code
Feb 22, 2026
Merged

chore: remove dead code and stale allow(dead_code) annotations#61
i-doll merged 1 commit into
mainfrom
chore/remove-dead-code

Conversation

@i-doll

@i-doll i-doll commented Feb 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Remove scrapped archive preview feature: ArchiveEntry struct, all list_* functions, render_archive_contents, extract_zip_file, and their tests
  • Remove 10 stale #[allow(dead_code)] annotations from items that are actively used
  • Remove unused struct fields: GitCommit.author, ExifData.date_taken, FileProperties.is_symlink
  • Simplify FormatResult::Error(String) to unit variant FormatResult::Error (message was always discarded in production)
  • Gate test-only App::inactive_pane_dir() behind #[cfg(test)]
  • Rewrite compress tests to verify via extraction instead of removed listing functions

Eliminates all clippy dead_code warnings (was 12, now 0). All 473 tests pass.

Test plan

  • cargo clippy produces zero warnings
  • cargo test — all 473 tests pass

Remove scrapped archive preview feature (listing/rendering functions),
unused struct fields (GitCommit.author, ExifData.date_taken,
FileProperties.is_symlink), and simplify FormatResult::Error to a unit
variant. Gate test-only method behind #[cfg(test)]. Eliminates all
clippy dead_code warnings.
@i-doll i-doll force-pushed the chore/remove-dead-code branch from 2b95c28 to b15549f Compare February 22, 2026 11:39
@i-doll i-doll merged commit cdf5737 into main Feb 22, 2026
1 check passed
@i-doll i-doll deleted the chore/remove-dead-code branch February 22, 2026 11:44
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.

1 participant