Skip to content

Commit 9437f5e

Browse files
committed
Remove debug statements
1 parent 1634862 commit 9437f5e

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

editor/src/messages/tool/tool_messages/select_tool.rs

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -916,8 +916,6 @@ impl Fsm for SelectToolFsmState {
916916
// Dragging the selected layers around to transform them
917917
else if can_grab_compass_rose || intersection.is_some_and(|intersection| selected.iter().any(|selected_layer| intersection.starts_with(*selected_layer, document.metadata()))) {
918918
responses.add(DocumentMessage::StartTransaction);
919-
debug!("Starting drag on the layers!");
920-
debug!("can_grab_compass_rose: {:?} ---> compass_rose_state.can_grab(): {:?}, show_compass: {:?}", can_grab_compass_rose, compass_rose_state.can_grab(), show_compass);
921919

922920
if input.keyboard.key(select_deepest) || tool_data.nested_selection_behavior == NestedSelectionBehavior::Deepest {
923921
tool_data.select_single_layer = intersection;
@@ -1026,18 +1024,9 @@ impl Fsm for SelectToolFsmState {
10261024

10271025
let mouse_delta = snap_drag(start, current, tool_data.axis_align, axis, snap_data, &mut tool_data.snap_manager, &tool_data.snap_candidates);
10281026
let mouse_delta = match axis {
1029-
Axis::X => {
1030-
debug!("The axis is on X!");
1031-
mouse_delta.project_onto(e0)
1032-
},
1033-
Axis::Y => {
1034-
debug!("The axis is on Y!");
1035-
mouse_delta.project_onto(e0.perp())
1036-
},
1037-
Axis::None => {
1038-
debug!("The axis is on both X and Y!");
1039-
mouse_delta
1040-
},
1027+
Axis::X => mouse_delta.project_onto(e0)
1028+
Axis::Y => mouse_delta.project_onto(e0.perp()),
1029+
Axis::None => mouse_delta,
10411030
};
10421031

10431032
// TODO: Cache the result of `shallowest_unique_layers` to avoid this heavy computation every frame of movement, see https://github.com/GraphiteEditor/Graphite/pull/481

0 commit comments

Comments
 (0)