Remove unused code from gfx and layout crates

This commit is contained in:
est31 2019-05-29 21:16:11 +02:00
parent 8dc7a25893
commit 3efc5e59bc
9 changed files with 2 additions and 222 deletions

View file

@ -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 {