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:
parent
8bea6d4ef9
commit
26dc974668
|
@ -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<DrawPath<'a>>,
|
||||
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.
|
||||
/// 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<Twips>),
|
||||
LineTo(swf::Point<Twips>),
|
||||
|
|
Loading…
Reference in New Issue