From cba1db5ecc7755ee033f1b63bf454cc78ffe9383 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 4 May 2022 19:37:03 +0100 Subject: [PATCH] size handling: Drop From for OutlineCalculable We don't want this, because (in the new code structure) it could only exist if we somehow loaded an SVG, calculated its outline, threw the outline away, and then wanted to recalculate it. Signed-off-by: Ian Jackson --- src/shapelib.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/shapelib.rs b/src/shapelib.rs index 83152d47..ed2085d7 100644 --- a/src/shapelib.rs +++ b/src/shapelib.rs @@ -233,11 +233,6 @@ impl OutlineCalculable { )) } } -// todo: we want to defer outline calculation until load, so this -// is going to be redundant. -impl From for OutlineCalculable { - fn from(_: Outline) -> OutlineCalculable { OutlineCalculable { } } -} #[dyn_upcast] impl OutlineTrait for ItemInertForOcculted { delegate! { to self.outline { -- 2.30.2