diff options
author | est31 <MTest31@outlook.com> | 2019-06-02 07:12:44 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2019-06-03 04:18:12 +0200 |
commit | e64de8d90acba327d4276f5b872d2b6eaa1bde9c (patch) | |
tree | 6de0b941b63273736dcf31e6aa8ed60e5b07cbb7 /components/canvas/canvas_data.rs | |
parent | 8b6ed3d1823876fa7e3c5ff6b1a9036aa22a72f4 (diff) | |
download | servo-e64de8d90acba327d4276f5b872d2b6eaa1bde9c.tar.gz servo-e64de8d90acba327d4276f5b872d2b6eaa1bde9c.zip |
Remove unused code from a bunch of crates
Diffstat (limited to 'components/canvas/canvas_data.rs')
-rw-r--r-- | components/canvas/canvas_data.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/components/canvas/canvas_data.rs b/components/canvas/canvas_data.rs index beb29242b5e..a9d3a977af2 100644 --- a/components/canvas/canvas_data.rs +++ b/components/canvas/canvas_data.rs @@ -997,26 +997,6 @@ fn write_image( ); } -pub trait PointToi32 { - fn to_i32(&self) -> Point2D<i32>; -} - -impl PointToi32 for Point2D<f64> { - fn to_i32(&self) -> Point2D<i32> { - Point2D::new(self.x.to_i32().unwrap(), self.y.to_i32().unwrap()) - } -} - -pub trait SizeToi32 { - fn to_i32(&self) -> Size2D<i32>; -} - -impl SizeToi32 for Size2D<f64> { - fn to_i32(&self) -> Size2D<i32> { - Size2D::new(self.width.to_i32().unwrap(), self.height.to_i32().unwrap()) - } -} - pub trait RectToi32 { fn to_i32(&self) -> Rect<i32>; fn ceil(&self) -> Rect<f64>; |