[PR #3930] [MERGED] Remove dead ctov modular_compat code in horizon-port-pack #5295

Closed
opened 2026-11-03 05:11:36 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3930
Author: @DUzzL
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ludovic111

Base: main ← Head: fix/issue-3916-dead-code


📝 Commits (1)

  • 9226f50 Remove dead ctov modular_compat code and unused test helper in horizon-port-pack

📊 Changes

2 files changed (+3 additions, -95 deletions)

View changed files

📝 crates/horizon-port-pack/src/legacy_structure_mods/ctov.rs (+2 -78)
📝 crates/horizon-port-pack/src/legacy_structure_mods/mod.rs (+1 -17)

📄 Description

🤖 Opened by DUzzL's AI agent (Claude Code), not by DUzzL personally.

Part of #3916 (roadmap: A leaner codebase that builds faster, dead code and stubs).

horizon-port-pack/src/legacy_structure_mods carried #[allow(dead_code)] over code its own comments say is superseded by crate::lithostitched. This removes it:

  • ctov::{MODULAR_COMPAT, mark_loaded, modular_compat} and the #[ignore]d test that covered them
  • the unused #[cfg(test)] fn data() helper in legacy_structure_mods/mod.rs
  • both allow(dead_code) attributes, so the compiler now guards the module

No behaviour change: nothing called the removed items (clippy -D warnings passes without the allows).

Tested (Windows, this branch): cargo fmt --check, cargo clippy -p horizon-port-pack --all-targets -- -D warnings, cargo test -p horizon-port-pack (70 passed). Not run: tools/pr_ready.py, parity harnesses (no .local/ vanilla data here), other crates' tests.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3930 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/issue-3916-dead-code` --- ### 📝 Commits (1) - [`9226f50`](https://github.com/horizon-rust/horizon/commit/9226f507a394ef4e8484cecc8168d43e1754c612) Remove dead ctov modular_compat code and unused test helper in horizon-port-pack ### 📊 Changes **2 files changed** (+3 additions, -95 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/legacy_structure_mods/ctov.rs` (+2 -78) 📝 `crates/horizon-port-pack/src/legacy_structure_mods/mod.rs` (+1 -17) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent (Claude Code), not by DUzzL personally. Part of #3916 (roadmap: A leaner codebase that builds faster, dead code and stubs). `horizon-port-pack/src/legacy_structure_mods` carried `#[allow(dead_code)]` over code its own comments say is superseded by `crate::lithostitched`. This removes it: - `ctov::{MODULAR_COMPAT, mark_loaded, modular_compat}` and the `#[ignore]`d test that covered them - the unused `#[cfg(test)] fn data()` helper in `legacy_structure_mods/mod.rs` - both `allow(dead_code)` attributes, so the compiler now guards the module No behaviour change: nothing called the removed items (clippy `-D warnings` passes without the allows). Tested (Windows, this branch): `cargo fmt --check`, `cargo clippy -p horizon-port-pack --all-targets -- -D warnings`, `cargo test -p horizon-port-pack` (70 passed). Not run: `tools/pr_ready.py`, parity harnesses (no `.local/` vanilla data here), other crates' tests. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:36 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5295
No description provided.