]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_data_structures/src/work_queue.rs
Remove unused code from remaining compiler crates
[rust.git] / compiler / rustc_data_structures / src / work_queue.rs
index 0c848eb144d79bb8297838c7a9c7df7ad514925a..cc562bc1e4d914be4eb6a707a6eae9233ea5b4a0 100644 (file)
@@ -14,12 +14,6 @@ pub struct WorkQueue<T: Idx> {
 }
 
 impl<T: Idx> WorkQueue<T> {
-    /// Creates a new work queue with all the elements from (0..len).
-    #[inline]
-    pub fn with_all(len: usize) -> Self {
-        WorkQueue { deque: (0..len).map(T::new).collect(), set: BitSet::new_filled(len) }
-    }
-
     /// Creates a new work queue that starts empty, where elements range from (0..len).
     #[inline]
     pub fn with_none(len: usize) -> Self {