summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-03-06 00:58:01 +0000
committervarkor <github@varkor.com>2018-03-06 00:58:01 +0000
commit6701d9020f0deb0e8d673fe5ad1247514b3e9db3 (patch)
treed96ec1df8166981cd9ad6743c7589143cb18dd16 /src/librustc_data_structures
parentc9334404f06a188854af33835a0efe1e834e4ac4 (diff)
downloadrust-6701d9020f0deb0e8d673fe5ad1247514b3e9db3.tar.gz
rust-6701d9020f0deb0e8d673fe5ad1247514b3e9db3.zip
Remove IdxSet::reset_to_empty
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/indexed_set.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/librustc_data_structures/indexed_set.rs b/src/librustc_data_structures/indexed_set.rs
index 223e08de826..7c926cc784b 100644
--- a/src/librustc_data_structures/indexed_set.rs
+++ b/src/librustc_data_structures/indexed_set.rs
@@ -231,11 +231,6 @@ impl<T: Idx> IdxSet<T> {
         each_bit(self, max_bits, f)
     }
 
-    /// Removes all elements from this set.
-    pub fn reset_to_empty(&mut self) {
-        for word in self.words_mut() { *word = 0; }
-    }
-
     pub fn elems(&self, universe_size: usize) -> Elems<T> {
         Elems { i: 0, set: self, universe_size: universe_size }
     }