From 26dc974668ef4550c9168befab7ae613687d49d2 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Thu, 27 Jun 2024 15:45:16 -0400 Subject: [PATCH] render: Remove unused PartialEq impls from `shape_utils` These impls were unused, and I don't think we should ever be doing a 'deep comparison' of things like `DistilledShape` --- render/src/shape_utils.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/render/src/shape_utils.rs b/render/src/shape_utils.rs index 3b06bd9d7..c0f8093ee 100644 --- a/render/src/shape_utils.rs +++ b/render/src/shape_utils.rs @@ -81,7 +81,7 @@ pub fn calculate_shape_bounds(shape_records: &[swf::ShapeRecord]) -> swf::Rectan /// `DrawPath` represents a solid fill or a stroke. /// Fills are always closed paths, while strokes may be open or closed. /// Closed paths will have the first point equal to the last point. -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug)] pub enum DrawPath<'a> { Stroke { style: &'a LineStyle, @@ -97,7 +97,7 @@ pub enum DrawPath<'a> { /// `DistilledShape` represents a ready-to-be-consumed collection of paths (both fills and strokes) /// that has been converted down from another source (such as SWF's `swf::Shape` format). -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug)] pub struct DistilledShape<'a> { pub paths: Vec>, pub shape_bounds: Rectangle, @@ -118,7 +118,7 @@ impl<'a> From<&'a swf::Shape> for DistilledShape<'a> { /// `DrawCommands` trace the outline of a path. /// Fills follow the even-odd fill rule, with opposite winding for holes. -#[derive(Clone, Debug, Eq, PartialEq)] +#[derive(Clone, Debug)] pub enum DrawCommand { MoveTo(swf::Point), LineTo(swf::Point),