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,11 +1487,8 @@ 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):
% if property.derived_from is None:
#[allow(non_snake_case)] #[allow(non_snake_case)]
#[inline] #[inline]
pub fn get_${property.ident}(&self) -> bool { pub fn get_${property.ident}(&self) -> bool {
@ -1502,11 +1499,7 @@ mod property_bit_field {
pub fn set_${property.ident}(&mut self) { pub fn set_${property.ident}(&mut self) {
self.set(${i}) self.set(${i})
} }
#[allow(non_snake_case)] % endif
#[inline]
pub fn clear_${property.ident}(&mut self) {
self.clear(${i})
}
% endfor % endfor
} }
} }