mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-28 15:18:12 +08:00
Drop redundant conversions, assertions and struct updates
This commit is contained in:
+2
@@ -69,6 +69,8 @@ impl SpiralTurns {
|
||||
self.handle_state == SpiralTurnsState::Dragging
|
||||
}
|
||||
|
||||
// Records one snapshot of the spiral's parameters; grouping them would only move the same fields into a struct
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn store_initial_parameters(
|
||||
&mut self,
|
||||
layer: LayerNodeIdentifier,
|
||||
|
||||
@@ -88,11 +88,8 @@ impl ShapeType {
|
||||
}
|
||||
|
||||
pub fn tooltip_description(&self) -> String {
|
||||
(match self {
|
||||
// TODO: Add descriptions to all the shape tools
|
||||
_ => "",
|
||||
})
|
||||
.into()
|
||||
// TODO: Add descriptions to all the shape tools
|
||||
String::new()
|
||||
}
|
||||
|
||||
pub fn icon_name(&self) -> String {
|
||||
|
||||
@@ -677,7 +677,6 @@ mod tests {
|
||||
down: [10., 15.].map(|y| Rect::from_square(DVec2::new(0., y), 2.)).to_vec(),
|
||||
left: [-12., -15.].map(|x| Rect::from_square(DVec2::new(x, 0.), 2.)).to_vec(),
|
||||
right: [12., 15.].map(|x| Rect::from_square(DVec2::new(x, 0.), 2.)).to_vec(),
|
||||
..Default::default()
|
||||
};
|
||||
let source = Rect::from_square(DVec2::new(0.3, 0.4), 2.);
|
||||
let snap_results = &mut SnapResults::default();
|
||||
|
||||
Reference in New Issue
Block a user