diff options
Diffstat (limited to 'components/layout/flow_list.rs')
-rw-r--r-- | components/layout/flow_list.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/components/layout/flow_list.rs b/components/layout/flow_list.rs index 0283c15ae81..a27db03920a 100644 --- a/components/layout/flow_list.rs +++ b/components/layout/flow_list.rs @@ -73,17 +73,6 @@ impl FlowList { self.flows.push_back(FlowRef::new(new_head)); } - pub fn back(&self) -> Option<&dyn Flow> { - self.flows.back().map(|x| &**x) - } - - /// Add an element first in the list - /// - /// O(1) - pub fn push_front(&mut self, new_head: FlowRef) { - self.flows.push_front(new_head); - } - pub fn push_front_arc(&mut self, new_head: Arc<dyn Flow>) { self.flows.push_front(FlowRef::new(new_head)); } @@ -92,10 +81,6 @@ impl FlowList { self.flows.pop_front().map(FlowRef::into_arc) } - pub fn front(&self) -> Option<&dyn Flow> { - self.flows.front().map(|x| &**x) - } - /// Create an empty list #[inline] pub fn new() -> FlowList { @@ -142,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() } |