]> git.lizzy.rs Git - rust.git/commitdiff
f dead code
authorPiotr Czarnecki <pioczarn@gmail.com>
Mon, 21 Mar 2016 22:53:55 +0000 (23:53 +0100)
committerPiotr Czarnecki <pioczarn@gmail.com>
Mon, 21 Mar 2016 22:53:55 +0000 (23:53 +0100)
src/libstd/collections/hash/table.rs

index 3c61faae8eafc73efbe764c1c4b12a1bcdfc867e..851a8601c24f067c66912e14662b7f80a3cbab91 100644 (file)
@@ -180,8 +180,6 @@ unsafe fn offset(self, count: isize) -> RawBucket<K, V> {
     }
 }
 
-// Uncomment dead code when it's needed.
-
 // Buckets hold references to the table.
 impl<K, V, M> FullBucket<K, V, M> {
     /// Borrow a reference to the table.
@@ -203,17 +201,9 @@ impl<K, V, M> EmptyBucket<K, V, M> {
     pub fn table(&self) -> &M {
         &self.table
     }
-    // /// Move out the reference to the table.
-    // pub fn into_table(self) -> M {
-    //     self.table
-    // }
 }
 
 impl<K, V, M> Bucket<K, V, M> {
-    // /// Move out the reference to the table.
-    // pub fn into_table(self) -> M {
-    //     self.table
-    // }
     /// Get the raw index.
     pub fn index(&self) -> usize {
         self.idx