mirror of
https://github.com/ZSeven-W/openpencil.git
synced 2026-06-01 03:14:29 +07:00
refactor(ai): drop dead node_base_role helper in validation_fixes_apply
memory-tagged follow-up — `node_base_role(node) -> Option<&str>` (line 568 of `validation_fixes_apply.rs`) was a thin shim over `node.base().role.as_deref()` with zero call sites anywhere in crates/* or vendor/*. Inlining at the (single, hypothetical) caller is shorter than the helper itself. `cargo test -p op-orchestrator` still 585 passed; workspace 1880 passed; fmt + clippy --workspace -D warnings clean.
This commit is contained in:
parent
91f05a1dc5
commit
fa2d06c5af
1 changed files with 0 additions and 4 deletions
|
|
@ -565,10 +565,6 @@ fn node_child_count(node: &jian_ops_schema::node::PenNode) -> usize {
|
|||
}
|
||||
}
|
||||
|
||||
pub(super) fn node_base_role(node: &jian_ops_schema::node::PenNode) -> Option<&str> {
|
||||
node.base().role.as_deref()
|
||||
}
|
||||
|
||||
/// A flat snapshot of the properties we need for
|
||||
/// `auto_fix_parent_layout_after_add_child`.
|
||||
struct NodeSnapshot {
|
||||
|
|
|
|||
Loading…
Reference in a new issue