chiark / gitweb /
size handling: Drop From<Outline> for OutlineCalculable
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 May 2022 18:37:03 +0000 (19:37 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 May 2022 18:47:17 +0000 (19:47 +0100)
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 <ijackson@chiark.greenend.org.uk>
src/shapelib.rs

index 83152d47b03f08ccd832cdccd3130b588a5942e2..ed2085d75126688abd8f27749daf5f6afa7ac32a 100644 (file)
@@ -233,11 +233,6 @@ impl OutlineCalculable {
     ))
   }
 }
-// todo: we want to defer outline calculation until load, so this
-// is going to be redundant.
-impl From<Outline> for OutlineCalculable {
-  fn from(_: Outline) -> OutlineCalculable { OutlineCalculable { } }
-}
 
 #[dyn_upcast]
 impl OutlineTrait for ItemInertForOcculted { delegate! { to self.outline {