Skip to content

Commit a0115ff

Browse files
mTvare6Keavon
authored andcommitted
remove: unused layer
1 parent 7d46c7d commit a0115ff

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

editor/src/messages/tool/common_functionality/pivot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ impl Pivot {
224224
self.pivot = Some(self.transform_from_normalized.transform_point2(self.normalized_pivot));
225225
}
226226

227-
pub fn recalculate_pivot_for_layer(&mut self, document: &DocumentMessageHandler, layer: LayerNodeIdentifier, bounds: Option<[DVec2; 2]>) {
227+
pub fn recalculate_pivot_for_layer(&mut self, document: &DocumentMessageHandler, bounds: Option<[DVec2; 2]>) {
228228
if !self.active {
229229
return;
230230
}

editor/src/messages/tool/transform_layer/transform_layer_message_handler.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ fn calculate_pivot(
7272
viewspace: DAffine2,
7373
get_location: impl Fn(&ManipulatorPointId) -> Option<DVec2>,
7474
dot: &mut Dot,
75-
layers: LayerNodeIdentifier,
7675
) -> (Option<(DVec2, DVec2)>, Option<[DVec2; 2]>) {
7776
let average_position = || {
7877
let mut point_count = 0;
@@ -89,7 +88,7 @@ fn calculate_pivot(
8988
Some([point, point])
9089
}
9190
});
92-
dot.pivot.recalculate_pivot_for_layer(document, layers, bounds);
91+
dot.pivot.recalculate_pivot_for_layer(document, bounds);
9392
let position = || {
9493
{
9594
if dot.state.enabled {
@@ -254,7 +253,6 @@ impl MessageHandler<TransformLayerMessage, TransformData<'_>> for TransformLayer
254253
viewspace,
255254
|point: &ManipulatorPointId| get_location(&point),
256255
&mut self.dot,
257-
selected_layers[0],
258256
) {
259257
*selected.pivot = new_pivot;
260258
self.path_bounds = bounds;

0 commit comments

Comments
 (0)