Skip to content

Commit a198aad

Browse files
committed
auto merge of #7100 : thestinger/rust/hashmap, r=pnkfelix
Not much point in leaving these around. They just get in the way when you actually want to log something else.
2 parents 4e950e9 + ed7892a commit a198aad

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/libstd/hashmap.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ impl<K:Hash + Eq,V> HashMap<K, V> {
9494

9595
#[inline(always)]
9696
fn next_bucket(&self, idx: uint, len_buckets: uint) -> uint {
97-
let n = (idx + 1) % len_buckets;
98-
debug!("next_bucket(%?, %?) = %?", idx, len_buckets, n);
99-
n
97+
(idx + 1) % len_buckets
10098
}
10199

102100
#[inline(always)]
@@ -215,16 +213,12 @@ impl<K:Hash + Eq,V> HashMap<K, V> {
215213
match self.bucket_for_key_with_hash(hash, &k) {
216214
TableFull => { fail!("Internal logic error"); }
217215
FoundHole(idx) => {
218-
debug!("insert fresh (%?->%?) at idx %?, hash %?",
219-
k, v, idx, hash);
220216
self.buckets[idx] = Some(Bucket{hash: hash, key: k,
221217
value: v});
222218
self.size += 1;
223219
None
224220
}
225221
FoundEntry(idx) => {
226-
debug!("insert overwrite (%?->%?) at idx %?, hash %?",
227-
k, v, idx, hash);
228222
match self.buckets[idx] {
229223
None => { fail!("insert_internal: Internal logic error") }
230224
Some(ref mut b) => {

0 commit comments

Comments
 (0)