Skip to content

Commit

Permalink
Some further removals
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed May 30, 2019
1 parent 3efc5e5 commit bb6052c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
8 changes: 0 additions & 8 deletions components/layout/flow.rs
Expand Up @@ -51,7 +51,6 @@ use num_traits::cast::FromPrimitive;
use serde::ser::{Serialize, SerializeStruct, Serializer};
use servo_geometry::{au_rect_to_f32_rect, f32_rect_to_au_rect, MaxRect};
use std::fmt;
use std::iter::Zip;
use std::slice::IterMut;
use std::sync::atomic::Ordering;
use std::sync::Arc;
Expand Down Expand Up @@ -128,11 +127,6 @@ pub trait Flow: HasBaseFlow + fmt::Debug + Sync + Send + 'static {
panic!("called as_flex() on a non-flex flow")
}

/// If this is a flex flow, returns the underlying object, borrowed mutably. Fails otherwise.
fn as_mut_flex(&mut self) -> &mut FlexFlow {
panic!("called as_mut_flex() on a non-flex flow")
}

/// If this is an inline flow, returns the underlying object. Fails otherwise.
fn as_inline(&self) -> &InlineFlow {
panic!("called as_inline() on a non-inline flow")
Expand Down Expand Up @@ -786,8 +780,6 @@ impl<'a> Iterator for AbsoluteDescendantIter<'a> {
}
}

pub type AbsoluteDescendantOffsetIter<'a> = Zip<AbsoluteDescendantIter<'a>, IterMut<'a, Au>>;

/// Information needed to compute absolute (i.e. viewport-relative) flow positions (not to be
/// confused with absolutely-positioned flows) that is computed during block-size assignment.
#[derive(Clone, Copy)]
Expand Down
6 changes: 0 additions & 6 deletions components/layout/flow_list.rs
Expand Up @@ -125,12 +125,6 @@ impl FlowList {
}
}

/// O(1)
#[inline]
pub fn is_empty(&self) -> bool {
self.flows.is_empty()
}

/// O(1)
#[inline]
pub fn len(&self) -> usize {
Expand Down
6 changes: 0 additions & 6 deletions components/layout/traversal.rs
Expand Up @@ -24,12 +24,6 @@ pub struct RecalcStyleAndConstructFlows<'a> {
context: LayoutContext<'a>,
}

impl<'a> RecalcStyleAndConstructFlows<'a> {
pub fn layout_context(&self) -> &LayoutContext<'a> {
&self.context
}
}

impl<'a> RecalcStyleAndConstructFlows<'a> {
/// Creates a traversal context, taking ownership of the shared layout context.
pub fn new(context: LayoutContext<'a>) -> Self {
Expand Down

0 comments on commit bb6052c

Please sign in to comment.