Remove dead code

This commit is contained in:
Simon Sapin 2014-11-28 17:44:00 +00:00
parent 18de4dd75d
commit c6ff02199d
2 changed files with 12 additions and 21 deletions

View file

@ -10,8 +10,6 @@ pub use servo_util::geometry::Au;
pub type CSSFloat = f64; pub type CSSFloat = f64;
pub static DEFAULT_LINE_HEIGHT: CSSFloat = 1.14;
pub mod specified { pub mod specified {
use std::ascii::AsciiExt; use std::ascii::AsciiExt;
use std::f64::consts::PI; use std::f64::consts::PI;

View file

@ -1487,26 +1487,19 @@ mod property_bit_field {
fn set(&mut self, bit: uint) { fn set(&mut self, bit: uint) {
self.storage[bit / uint::BITS] |= 1 << (bit % uint::BITS) 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): % for i, property in enumerate(LONGHANDS):
#[allow(non_snake_case)] % if property.derived_from is None:
#[inline] #[allow(non_snake_case)]
pub fn get_${property.ident}(&self) -> bool { #[inline]
self.get(${i}) pub fn get_${property.ident}(&self) -> bool {
} self.get(${i})
#[allow(non_snake_case)] }
#[inline] #[allow(non_snake_case)]
pub fn set_${property.ident}(&mut self) { #[inline]
self.set(${i}) pub fn set_${property.ident}(&mut self) {
} self.set(${i})
#[allow(non_snake_case)] }
#[inline] % endif
pub fn clear_${property.ident}(&mut self) {
self.clear(${i})
}
% endfor % endfor
} }
} }