diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2014-11-28 17:44:00 +0000 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2014-11-28 17:44:00 +0000 |
commit | c6ff02199d2811ade854aa8df6b36d70429bdbea (patch) | |
tree | d4f11e6cd3e9bf619893444efda1afe1d34046fa | |
parent | 18de4dd75d75f0ba12e077a8b4b707f29f021e11 (diff) | |
download | servo-c6ff02199d2811ade854aa8df6b36d70429bdbea.tar.gz servo-c6ff02199d2811ade854aa8df6b36d70429bdbea.zip |
Remove dead code
-rw-r--r-- | components/style/properties/common_types.rs | 2 | ||||
-rw-r--r-- | components/style/properties/mod.rs.mako | 31 |
2 files changed, 12 insertions, 21 deletions
diff --git a/components/style/properties/common_types.rs b/components/style/properties/common_types.rs index d527e024929..4f68f77bcd0 100644 --- a/components/style/properties/common_types.rs +++ b/components/style/properties/common_types.rs @@ -10,8 +10,6 @@ pub use servo_util::geometry::Au; pub type CSSFloat = f64; -pub static DEFAULT_LINE_HEIGHT: CSSFloat = 1.14; - pub mod specified { use std::ascii::AsciiExt; use std::f64::consts::PI; diff --git a/components/style/properties/mod.rs.mako b/components/style/properties/mod.rs.mako index dabf5452c9b..789dc14f45f 100644 --- a/components/style/properties/mod.rs.mako +++ b/components/style/properties/mod.rs.mako @@ -1487,26 +1487,19 @@ mod property_bit_field { fn set(&mut self, bit: uint) { self.storage[bit / uint::BITS] |= 1 << (bit % uint::BITS) } - #[inline] - fn clear(&mut self, bit: uint) { - self.storage[bit / uint::BITS] &= !(1 << (bit % uint::BITS)) - } % for i, property in enumerate(LONGHANDS): - #[allow(non_snake_case)] - #[inline] - pub fn get_${property.ident}(&self) -> bool { - self.get(${i}) - } - #[allow(non_snake_case)] - #[inline] - pub fn set_${property.ident}(&mut self) { - self.set(${i}) - } - #[allow(non_snake_case)] - #[inline] - pub fn clear_${property.ident}(&mut self) { - self.clear(${i}) - } + % if property.derived_from is None: + #[allow(non_snake_case)] + #[inline] + pub fn get_${property.ident}(&self) -> bool { + self.get(${i}) + } + #[allow(non_snake_case)] + #[inline] + pub fn set_${property.ident}(&mut self) { + self.set(${i}) + } + % endif % endfor } } |