From: Ian Jackson Date: Wed, 4 May 2022 18:37:03 +0000 (+0100) Subject: size handling: Drop From for OutlineCalculable X-Git-Tag: otter-1.1.0~299 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=cba1db5ecc7755ee033f1b63bf454cc78ffe9383;p=otter.git 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 --- 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 {