aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/util/linked_list.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/components/util/linked_list.rs b/components/util/linked_list.rs
index 95cadd025c1..5114f02c0e4 100644
--- a/components/util/linked_list.rs
+++ b/components/util/linked_list.rs
@@ -9,10 +9,6 @@ use std::mem;
/// Splits the head off a list in O(1) time, and returns the head.
pub fn split_off_head<T>(list: &mut LinkedList<T>) -> LinkedList<T> {
- // FIXME: Work around https://github.com/rust-lang/rust/issues/22244
- if list.len() == 1 {
- return mem::replace(list, LinkedList::new());
- }
let tail = list.split_off(1);
mem::replace(list, tail)
}