summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2020-10-09 11:23:40 +0200
committerest31 <MTest31@outlook.com>2020-10-14 04:14:32 +0200
commit215cd36e1cff1806429806cb5be81f6d1a5f98b0 (patch)
tree9c6b9c881228f080c9f932d2561d98a06c6c394b /compiler/rustc_data_structures/src
parent58b3923ad377e79a0517ec15a672e3f8f90b10b4 (diff)
downloadrust-215cd36e1cff1806429806cb5be81f6d1a5f98b0.tar.gz
rust-215cd36e1cff1806429806cb5be81f6d1a5f98b0.zip
Remove unused code from remaining compiler crates
Diffstat (limited to 'compiler/rustc_data_structures/src')
-rw-r--r--compiler/rustc_data_structures/src/work_queue.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_data_structures/src/work_queue.rs b/compiler/rustc_data_structures/src/work_queue.rs
index 0c848eb144d..cc562bc1e4d 100644
--- a/compiler/rustc_data_structures/src/work_queue.rs
+++ b/compiler/rustc_data_structures/src/work_queue.rs
@@ -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 {