aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/util/geometry.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2014-08-22 15:49:25 -0700
committerMartin Robinson <mrobinson@igalia.com>2014-08-27 15:28:46 -0700
commitcae18322e7b50758d6d2029df3b31d90ba2c84c2 (patch)
treed0a3a0b44d26f599abe88908c36febb0372b3c13 /src/components/util/geometry.rs
parent31cc50f2ebc0c689d15bf65e71b1420f9f2edb29 (diff)
downloadservo-cae18322e7b50758d6d2029df3b31d90ba2c84c2.tar.gz
servo-cae18322e7b50758d6d2029df3b31d90ba2c84c2.zip
Start using more typed units in the compositor
Now that rust-layers is starting to support typed units, we can use them more thoroughly in the compositor. This is a step toward removing as many untyped units as possible.
Diffstat (limited to 'src/components/util/geometry.rs')
-rw-r--r--src/components/util/geometry.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/components/util/geometry.rs b/src/components/util/geometry.rs
index 2b1082fa3d2..878ebc70440 100644
--- a/src/components/util/geometry.rs
+++ b/src/components/util/geometry.rs
@@ -13,12 +13,6 @@ use std::fmt;
// Units for use with geom::length and geom::scale_factor.
-/// One hardware pixel.
-///
-/// This unit corresponds to the smallest addressable element of the display hardware.
-#[deriving(Encodable)]
-pub enum DevicePixel {}
-
/// A normalized "pixel" at the default resolution for the display.
///
/// Like the CSS "px" unit, the exact physical size of this unit may vary between devices, but it