aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/imagedata.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-04-06 17:41:55 -0700
committerManish Goregaokar <manishsmail@gmail.com>2020-04-07 08:51:08 -0700
commitfccfff11c521377c91a26729710d54920379a8eb (patch)
treea61a0f669d51df6f9b924a97b1c745e43b783fb2 /components/script/dom/imagedata.rs
parentb944a6e281fc59e75df07181f6ca3d39a9dc5d6a (diff)
downloadservo-fccfff11c521377c91a26729710d54920379a8eb.tar.gz
servo-fccfff11c521377c91a26729710d54920379a8eb.zip
Update euclid
Diffstat (limited to 'components/script/dom/imagedata.rs')
-rw-r--r--components/script/dom/imagedata.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/components/script/dom/imagedata.rs b/components/script/dom/imagedata.rs
index bc605b5f029..39e3b061711 100644
--- a/components/script/dom/imagedata.rs
+++ b/components/script/dom/imagedata.rs
@@ -184,13 +184,3 @@ impl ImageDataMethods for ImageData {
NonNull::new(self.data.get()).expect("got a null pointer")
}
}
-
-pub trait Size2DExt {
- fn to_u64(&self) -> Size2D<u64>;
-}
-
-impl Size2DExt for Size2D<u32> {
- fn to_u64(&self) -> Size2D<u64> {
- return Size2D::new(self.width as u64, self.height as u64);
- }
-}