From f7d86b2f4ace416a65e84603082c756b8b5dc43e Mon Sep 17 00:00:00 2001 From: Jakub Wieczorek Date: Fri, 6 Jun 2014 15:51:42 +0200 Subject: Remove the dead code identified by the new lint --- src/libstd/collections/hashmap.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/libstd/collections') diff --git a/src/libstd/collections/hashmap.rs b/src/libstd/collections/hashmap.rs index 571c5794704..99544f2ff3b 100644 --- a/src/libstd/collections/hashmap.rs +++ b/src/libstd/collections/hashmap.rs @@ -393,7 +393,7 @@ mod table { } pub fn move_iter(self) -> MoveEntries { - MoveEntries { table: self, idx: 0, elems_seen: 0 } + MoveEntries { table: self, idx: 0 } } } @@ -428,8 +428,7 @@ mod table { /// Iterator over the entries in a table, consuming the table. pub struct MoveEntries { table: RawTable, - idx: uint, - elems_seen: uint, + idx: uint } impl<'a, K, V> Iterator<(&'a K, &'a V)> for Entries<'a, K, V> { -- cgit 1.4.1-3-g733a5