diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2020-02-25 16:41:40 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2020-02-26 10:59:35 +1100 |
| commit | 54d1c50c7e7b4c4c7dca6c85c6965c886922b449 (patch) | |
| tree | 547c9738b4ccd10f9d3d44f40584b16d79779d4a /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | b1f395de642e8be7bcbbd2bd8aaadab715851f49 (diff) | |
| download | rust-54d1c50c7e7b4c4c7dca6c85c6965c886922b449.tar.gz rust-54d1c50c7e7b4c4c7dca6c85c6965c886922b449.zip | |
Remove `sip::Hasher::short_write`.
`sip::Hasher::short_write` is currently unused. It is called by
`sip::Hasher::write_{u8,usize}`, but those methods are also unused,
because `DefaultHasher`, `SipHasher` and `SipHasher13` don't implement
any of the `write_xyz` methods, so all their write operations end up
calling `sip::Hasher::write`.
(I confirmed this by inserting a `panic!` in `sip::Hasher::short_write`
and running the tests -- they all passed.)
The alternative would be to add all the missing `write_xyz` methods.
This does give some significant speed-ups, but it hurts compile times a
little in some cases. See #69152 for details. This commit does the
conservative thing and doesn't change existing behaviour.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
