mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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 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;
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue