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:
Fini 2026-05-24 16:41:36 +08:00
parent 91f05a1dc5
commit fa2d06c5af

View file

@ -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 {