From 5252a33c5da8a8c2ff7d3eb4553253b71b84a758 Mon Sep 17 00:00:00 2001 From: Chad Brokaw Date: Thu, 19 May 2022 18:16:30 -0400 Subject: [PATCH] Oops. Delete one remaining lossy conversion --- piet-scene/src/lib.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/piet-scene/src/lib.rs b/piet-scene/src/lib.rs index 8501d33..8f436b2 100644 --- a/piet-scene/src/lib.rs +++ b/piet-scene/src/lib.rs @@ -90,19 +90,6 @@ mod kurbo_conv { } } - impl From for Element { - fn from(e: kurbo::PathEl) -> Self { - use kurbo::PathEl::*; - match e { - MoveTo(p0) => Self::MoveTo(p0.into()), - LineTo(p0) => Self::LineTo(p0.into()), - QuadTo(p0, p1) => Self::QuadTo(p0.into(), p1.into()), - CurveTo(p0, p1, p2) => Self::CurveTo(p0.into(), p1.into(), p2.into()), - ClosePath => Self::Close, - } - } - } - impl Element { /// Creates a new path element from the equivalent kurbo type. pub fn from_kurbo(el: kurbo::PathEl) -> Self {