mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove dead code
This commit is contained in:
parent
18de4dd75d
commit
c6ff02199d
2 changed files with 12 additions and 21 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue