diff options
| author | Kiet Tran <ktt3ja@gmail.com> | 2013-12-08 02:55:28 -0500 |
|---|---|---|
| committer | Kiet Tran <ktt3ja@gmail.com> | 2013-12-08 02:55:28 -0500 |
| commit | 1755408d1a58684b6c9bce11aeceb18a1ec2d66e (patch) | |
| tree | 9d781272021fe4ead382ffc8f87c048f194e25b5 /src/libstd/hash.rs | |
| parent | c06dd0e0afb4b78ab4e482a7488adcf1c865bd19 (diff) | |
| download | rust-1755408d1a58684b6c9bce11aeceb18a1ec2d66e.tar.gz rust-1755408d1a58684b6c9bce11aeceb18a1ec2d66e.zip | |
Remove dead codes
Diffstat (limited to 'src/libstd/hash.rs')
| -rw-r--r-- | src/libstd/hash.rs | 101 |
1 files changed, 0 insertions, 101 deletions
diff --git a/src/libstd/hash.rs b/src/libstd/hash.rs index 5a671eea7a3..fd439eb05e2 100644 --- a/src/libstd/hash.rs +++ b/src/libstd/hash.rs @@ -91,107 +91,6 @@ impl<A:IterBytes> Hash for A { } } -fn hash_keyed_2<A: IterBytes, - B: IterBytes>(a: &A, b: &B, k0: u64, k1: u64) -> u64 { - let mut s = State::new(k0, k1); - a.iter_bytes(true, |bytes| { - s.input(bytes); - true - }); - b.iter_bytes(true, |bytes| { - s.input(bytes); - true - }); - s.result_u64() -} - -fn hash_keyed_3<A: IterBytes, - B: IterBytes, - C: IterBytes>(a: &A, b: &B, c: &C, k0: u64, k1: u64) -> u64 { - let mut s = State::new(k0, k1); - a.iter_bytes(true, |bytes| { - s.input(bytes); - true - }); - b.iter_bytes(true, |bytes| { - s.input(bytes); - true - }); - c.iter_bytes(true, |bytes| { - s.input(bytes); - true - }); - s.result_u64() -} - -fn hash_keyed_4<A: IterBytes, - B: IterBytes, - C: IterBytes, - D: IterBytes>( - a: &A, - b: &B, - c: &C, - d: &D, - k0: u64, - k1: u64) - -> u64 { - let mut s = State::new(k0, k1); - a.iter_bytes(true, |bytes| { - s.input(bytes); - true - }); - b.iter_bytes(true, |bytes| { - s.input(bytes); - true - }); - c.iter_bytes(true, |bytes| { - s.input(bytes); - true - }); - d.iter_bytes(true, |bytes| { - s.input(bytes); - true - }); - s.result_u64() -} - -fn hash_keyed_5<A: IterBytes, - B: IterBytes, - C: IterBytes, - D: IterBytes, - E: IterBytes>( - a: &A, - b: &B, - c: &C, - d: &D, - e: &E, - k0: u64, - k1: u64) - -> u64 { - let mut s = State::new(k0, k1); - a.iter_bytes(true, |bytes| { - s.input(bytes); - true - }); - b.iter_bytes(true, |bytes| { - s.input(bytes); - true - }); - c.iter_bytes(true, |bytes| { - s.input(bytes); - true - }); - d.iter_bytes(true, |bytes| { - s.input(bytes); - true - }); - e.iter_bytes(true, |bytes| { - s.input(bytes); - true - }); - s.result_u64() -} - #[inline] pub fn default_state() -> State { State::new(0, 0) |
