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`
This commit is contained in:
Aaron Hill 2024-06-27 15:45:16 -04:00
parent 8bea6d4ef9
commit 26dc974668
No known key found for this signature in database
GPG Key ID: B4087E510E98B164
1 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ pub fn calculate_shape_bounds(shape_records: &[swf::ShapeRecord]) -> swf::Rectan
/// `DrawPath` represents a solid fill or a stroke. /// `DrawPath` represents a solid fill or a stroke.
/// Fills are always closed paths, while strokes may be open or closed. /// Fills are always closed paths, while strokes may be open or closed.
/// Closed paths will have the first point equal to the last point. /// Closed paths will have the first point equal to the last point.
#[derive(Clone, Debug, PartialEq)] #[derive(Clone, Debug)]
pub enum DrawPath<'a> { pub enum DrawPath<'a> {
Stroke { Stroke {
style: &'a LineStyle, 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) /// `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). /// 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 struct DistilledShape<'a> {
pub paths: Vec<DrawPath<'a>>, pub paths: Vec<DrawPath<'a>>,
pub shape_bounds: Rectangle<Twips>, pub shape_bounds: Rectangle<Twips>,
@ -118,7 +118,7 @@ impl<'a> From<&'a swf::Shape> for DistilledShape<'a> {
/// `DrawCommands` trace the outline of a path. /// `DrawCommands` trace the outline of a path.
/// Fills follow the even-odd fill rule, with opposite winding for holes. /// Fills follow the even-odd fill rule, with opposite winding for holes.
#[derive(Clone, Debug, Eq, PartialEq)] #[derive(Clone, Debug)]
pub enum DrawCommand { pub enum DrawCommand {
MoveTo(swf::Point<Twips>), MoveTo(swf::Point<Twips>),
LineTo(swf::Point<Twips>), LineTo(swf::Point<Twips>),