diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-09-19 16:35:28 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-09-19 16:35:53 -0700 |
| commit | 5e417395620f6d6ce45761d9ea72376c792ef60a (patch) | |
| tree | 70df9a87a0ab61f5b8b55e9bd5d50be5077fe9ba /src/libstd | |
| parent | 10e760efc8c99e15c50b925a48f7df4fdd704a48 (diff) | |
Remove final bits of residual hokey-hash functions. Close #1616.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/map.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libstd/map.rs b/src/libstd/map.rs index cdca0aae157..1784a2cac43 100644 --- a/src/libstd/map.rs +++ b/src/libstd/map.rs @@ -658,12 +658,6 @@ mod tests { fn test_removal() { debug!("*** starting test_removal"); let num_to_insert: uint = 64u; - fn eq(x: &uint, y: &uint) -> bool { *x == *y } - fn hash(u: &uint) -> uint { - // This hash function intentionally causes collisions between - // consecutive integer pairs. - *u / 2u * 2u - } assert (hash(&0u) == hash(&1u)); assert (hash(&2u) == hash(&3u)); assert (hash(&0u) != hash(&2u)); |
