PhotoCraft: An open-source, photo editor written by scratch in pure Rust
refactor(engine): share cycle checks through batch move implementation
Nigel Ihza Firdausyaec1aa1980b6
diff --git a/crates/engine/src/commands.rs b/crates/engine/src/commands.rsindex affa1933a..c6a74b875 100644--- a/crates/engine/src/commands.rs+++ b/crates/engine/src/commands.rs@@ -1179,7 +1179,3 @@ pub(crate) fn translate_layer(doc: &Document, l: &mut Layer, dx: i32, dy: i32) {}}-/// Does `l` (or any descendant) have id `target`?-fn contains_layer(l: &Layer, target: LayerId) -> bool {- l.id == target || l.children().is_some_and(|c| c.iter().any(|c| contains_layer(c, target)))-}