about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-06-13 03:25:11 -0700
committerbors <bors@rust-lang.org>2013-06-13 03:25:11 -0700
commita198aad8f3c60f7fdbfe127855e2e76bad1c0587 (patch)
tree5681e93535a3c7f0fd39662c0c56da4a4bba563b /src/libstd
parent4e950e970291dc25ce627fba649308775311a082 (diff)
parented7892ac00f01ceb1904b3b5049d9dd749a462bf (diff)
downloadrust-a198aad8f3c60f7fdbfe127855e2e76bad1c0587.tar.gz
rust-a198aad8f3c60f7fdbfe127855e2e76bad1c0587.zip
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.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/hashmap.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libstd/hashmap.rs b/src/libstd/hashmap.rs
index c0cc92723ba..ad9620d4e7e 100644
--- a/src/libstd/hashmap.rs
+++ b/src/libstd/hashmap.rs
@@ -94,9 +94,7 @@ impl<K:Hash + Eq,V> HashMap<K, V> {
 
     #[inline(always)]
     fn next_bucket(&self, idx: uint, len_buckets: uint) -> uint {
-        let n = (idx + 1) % len_buckets;
-        debug!("next_bucket(%?, %?) = %?", idx, len_buckets, n);
-        n
+        (idx + 1) % len_buckets
     }
 
     #[inline(always)]
@@ -215,16 +213,12 @@ impl<K:Hash + Eq,V> HashMap<K, V> {
         match self.bucket_for_key_with_hash(hash, &k) {
             TableFull => { fail!("Internal logic error"); }
             FoundHole(idx) => {
-                debug!("insert fresh (%?->%?) at idx %?, hash %?",
-                       k, v, idx, hash);
                 self.buckets[idx] = Some(Bucket{hash: hash, key: k,
                                                 value: v});
                 self.size += 1;
                 None
             }
             FoundEntry(idx) => {
-                debug!("insert overwrite (%?->%?) at idx %?, hash %?",
-                       k, v, idx, hash);
                 match self.buckets[idx] {
                     None => { fail!("insert_internal: Internal logic error") }
                     Some(ref mut b) => {