aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2019-05-30 14:28:39 +0200
committerest31 <MTest31@outlook.com>2019-05-30 20:27:19 +0200
commitbb6052ca8e550eee079958e782b9162b1b526603 (patch)
tree9b2a92f07709143df431409be82546c12d755515
parent3efc5e59bc7021d40183436e85a349bec3b0bbcd (diff)
downloadservo-bb6052ca8e550eee079958e782b9162b1b526603.tar.gz
servo-bb6052ca8e550eee079958e782b9162b1b526603.zip
Some further removals
-rw-r--r--components/layout/flow.rs8
-rw-r--r--components/layout/flow_list.rs6
-rw-r--r--components/layout/traversal.rs6
3 files changed, 0 insertions, 20 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs
index da877106f34..bcc38252b9b 100644
--- a/components/layout/flow.rs
+++ b/components/layout/flow.rs
@@ -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;
@@ -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")
@@ -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)]
diff --git a/components/layout/flow_list.rs b/components/layout/flow_list.rs
index 4abd3f47086..a27db03920a 100644
--- a/components/layout/flow_list.rs
+++ b/components/layout/flow_list.rs
@@ -127,12 +127,6 @@ impl FlowList {
/// O(1)
#[inline]
- pub fn is_empty(&self) -> bool {
- self.flows.is_empty()
- }
-
- /// O(1)
- #[inline]
pub fn len(&self) -> usize {
self.flows.len()
}
diff --git a/components/layout/traversal.rs b/components/layout/traversal.rs
index 6d44fcfc5e4..e968c184341 100644
--- a/components/layout/traversal.rs
+++ b/components/layout/traversal.rs
@@ -25,12 +25,6 @@ pub struct RecalcStyleAndConstructFlows<'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 {
RecalcStyleAndConstructFlows { context: context }