mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Remove some unused fields.
This commit is contained in:
parent
1fe1d03b02
commit
cfa9aaac08
4 changed files with 1 additions and 21 deletions
|
@ -92,8 +92,6 @@ pub struct Window {
|
||||||
|
|
||||||
event_queue: RefCell<Vec<WindowEvent>>,
|
event_queue: RefCell<Vec<WindowEvent>>,
|
||||||
|
|
||||||
drag_origin: Point2D<c_int>,
|
|
||||||
|
|
||||||
mouse_down_button: Cell<Option<glfw::MouseButton>>,
|
mouse_down_button: Cell<Option<glfw::MouseButton>>,
|
||||||
mouse_down_point: Cell<Point2D<c_int>>,
|
mouse_down_point: Cell<Point2D<c_int>>,
|
||||||
|
|
||||||
|
@ -121,8 +119,6 @@ impl WindowMethods<Application> for Window {
|
||||||
|
|
||||||
event_queue: RefCell::new(vec!()),
|
event_queue: RefCell::new(vec!()),
|
||||||
|
|
||||||
drag_origin: Point2D(0 as c_int, 0),
|
|
||||||
|
|
||||||
mouse_down_button: Cell::new(None),
|
mouse_down_button: Cell::new(None),
|
||||||
mouse_down_point: Cell::new(Point2D(0 as c_int, 0)),
|
mouse_down_point: Cell::new(Point2D(0 as c_int, 0)),
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,6 @@ pub struct ShapedGlyphData {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct ShapedGlyphEntry {
|
pub struct ShapedGlyphEntry {
|
||||||
cluster: int,
|
|
||||||
codepoint: GlyphId,
|
codepoint: GlyphId,
|
||||||
advance: Au,
|
advance: Au,
|
||||||
offset: Option<Point2D<Au>>,
|
offset: Option<Point2D<Au>>,
|
||||||
|
@ -123,7 +122,6 @@ impl ShapedGlyphData {
|
||||||
};
|
};
|
||||||
|
|
||||||
ShapedGlyphEntry {
|
ShapedGlyphEntry {
|
||||||
cluster: (*glyph_info_i).cluster as int,
|
|
||||||
codepoint: (*glyph_info_i).codepoint as GlyphId,
|
codepoint: (*glyph_info_i).codepoint as GlyphId,
|
||||||
advance: x_advance,
|
advance: x_advance,
|
||||||
offset: offset,
|
offset: offset,
|
||||||
|
|
|
@ -33,7 +33,6 @@ pub struct FlowList {
|
||||||
/// Double-ended FlowList iterator
|
/// Double-ended FlowList iterator
|
||||||
pub struct FlowListIterator<'a> {
|
pub struct FlowListIterator<'a> {
|
||||||
head: &'a Link,
|
head: &'a Link,
|
||||||
tail: Rawlink,
|
|
||||||
nelem: uint,
|
nelem: uint,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,7 +40,6 @@ pub struct FlowListIterator<'a> {
|
||||||
pub struct MutFlowListIterator<'a> {
|
pub struct MutFlowListIterator<'a> {
|
||||||
list: &'a mut FlowList,
|
list: &'a mut FlowList,
|
||||||
head: Rawlink,
|
head: Rawlink,
|
||||||
tail: Rawlink,
|
|
||||||
nelem: uint,
|
nelem: uint,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,13 +57,6 @@ impl Rawlink {
|
||||||
unsafe { mem::transmute(n) }
|
unsafe { mem::transmute(n) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn from_optional_flow_ref(flow_ref: &Option<FlowRef>) -> Rawlink {
|
|
||||||
match *flow_ref {
|
|
||||||
None => Rawlink::none(),
|
|
||||||
Some(ref flow_ref) => Rawlink::some(flow_ref.get()),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub unsafe fn resolve_mut(&self) -> Option<&mut Flow> {
|
pub unsafe fn resolve_mut(&self) -> Option<&mut Flow> {
|
||||||
if self.obj.is_null() {
|
if self.obj.is_null() {
|
||||||
None
|
None
|
||||||
|
@ -204,7 +195,6 @@ impl FlowList {
|
||||||
FlowListIterator {
|
FlowListIterator {
|
||||||
nelem: self.len(),
|
nelem: self.len(),
|
||||||
head: &self.list_head,
|
head: &self.list_head,
|
||||||
tail: Rawlink::from_optional_flow_ref(&self.list_tail)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -218,7 +208,6 @@ impl FlowList {
|
||||||
MutFlowListIterator {
|
MutFlowListIterator {
|
||||||
nelem: self.len(),
|
nelem: self.len(),
|
||||||
head: head_raw,
|
head: head_raw,
|
||||||
tail: Rawlink::from_optional_flow_ref(&self.list_tail),
|
|
||||||
list: self
|
list: self
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,9 +22,6 @@ pub struct Stylesheet {
|
||||||
/// List of rules in the order they were found (important for
|
/// List of rules in the order they were found (important for
|
||||||
/// cascading order)
|
/// cascading order)
|
||||||
pub rules: Vec<CSSRule>,
|
pub rules: Vec<CSSRule>,
|
||||||
namespaces: NamespaceMap,
|
|
||||||
encoding: EncodingRef,
|
|
||||||
base_url: Url,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -120,7 +117,7 @@ impl Stylesheet {
|
||||||
}
|
}
|
||||||
state = next_state;
|
state = next_state;
|
||||||
}
|
}
|
||||||
Stylesheet{ rules: rules, namespaces: namespaces, encoding: encoding, base_url: base_url }
|
Stylesheet{ rules: rules }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue