]> git.lizzy.rs Git - rust.git/commitdiff
hashmap: remove leftover debug!() logging
authorDaniel Micay <danielmicay@gmail.com>
Thu, 13 Jun 2013 07:25:28 +0000 (03:25 -0400)
committerDaniel Micay <danielmicay@gmail.com>
Thu, 13 Jun 2013 07:25:28 +0000 (03:25 -0400)
src/libstd/hashmap.rs

index c0cc92723ba4ddbd68c913493d66f7431080f388..ad9620d4e7e9d688a980a58fac6d67901da8a38b 100644 (file)
@@ -94,9 +94,7 @@ fn to_bucket(&self, h: uint) -> uint {
 
     #[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 @@ fn insert_internal(&mut self, hash: uint, k: K, v: V) -> Option<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) => {