Remove some unused fields.

This commit is contained in:
Ms2ger 2014-07-04 11:56:18 +02:00
parent 1fe1d03b02
commit cfa9aaac08
4 changed files with 1 additions and 21 deletions

View file

@ -92,8 +92,6 @@ pub struct Window {
event_queue: RefCell<Vec<WindowEvent>>,
drag_origin: Point2D<c_int>,
mouse_down_button: Cell<Option<glfw::MouseButton>>,
mouse_down_point: Cell<Point2D<c_int>>,
@ -121,8 +119,6 @@ impl WindowMethods<Application> for Window {
event_queue: RefCell::new(vec!()),
drag_origin: Point2D(0 as c_int, 0),
mouse_down_button: Cell::new(None),
mouse_down_point: Cell::new(Point2D(0 as c_int, 0)),

View file

@ -53,7 +53,6 @@ pub struct ShapedGlyphData {
}
pub struct ShapedGlyphEntry {
cluster: int,
codepoint: GlyphId,
advance: Au,
offset: Option<Point2D<Au>>,
@ -123,7 +122,6 @@ impl ShapedGlyphData {
};
ShapedGlyphEntry {
cluster: (*glyph_info_i).cluster as int,
codepoint: (*glyph_info_i).codepoint as GlyphId,
advance: x_advance,
offset: offset,

View file

@ -33,7 +33,6 @@ pub struct FlowList {
/// Double-ended FlowList iterator
pub struct FlowListIterator<'a> {
head: &'a Link,
tail: Rawlink,
nelem: uint,
}
@ -41,7 +40,6 @@ pub struct FlowListIterator<'a> {
pub struct MutFlowListIterator<'a> {
list: &'a mut FlowList,
head: Rawlink,
tail: Rawlink,
nelem: uint,
}
@ -59,13 +57,6 @@ impl Rawlink {
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> {
if self.obj.is_null() {
None
@ -204,7 +195,6 @@ impl FlowList {
FlowListIterator {
nelem: self.len(),
head: &self.list_head,
tail: Rawlink::from_optional_flow_ref(&self.list_tail)
}
}
@ -218,7 +208,6 @@ impl FlowList {
MutFlowListIterator {
nelem: self.len(),
head: head_raw,
tail: Rawlink::from_optional_flow_ref(&self.list_tail),
list: self
}
}

View file

@ -22,9 +22,6 @@ pub struct Stylesheet {
/// List of rules in the order they were found (important for
/// cascading order)
pub rules: Vec<CSSRule>,
namespaces: NamespaceMap,
encoding: EncodingRef,
base_url: Url,
}
@ -120,7 +117,7 @@ impl Stylesheet {
}
state = next_state;
}
Stylesheet{ rules: rules, namespaces: namespaces, encoding: encoding, base_url: base_url }
Stylesheet{ rules: rules }
}
}