Skip to content

Commit 7a650cb

Browse files
committed
Style, remove dead code.
1 parent f2c8d38 commit 7a650cb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

include/bitcoin/system/hash/pbkd.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct pbkd
5656

5757
protected:
5858
template <size_t Length>
59-
static constexpr auto xor_n(data_array<Length>& to,
59+
static constexpr void xor_n(data_array<Length>& to,
6060
const data_array<Length>& from) NOEXCEPT;
6161
};
6262

include/bitcoin/system/impl/hash/hmac.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ xor_n(block_t& pad, const byte_t* key, size_t size) NOEXCEPT
9090
// append zeros to the end of K to create a B byte string [skip].
9191
// XOR (bitwise exclusive-OR) the B byte string ... with [ipad/opad].
9292
// [not xoring beyond K length is the same as xoring that with zero].
93-
for (size_t i = 0; i < size; ++i)
93+
for (size_t i{}; i < size; ++i)
9494
pad[i] ^= key[i];
9595

9696
return pad;

include/bitcoin/system/impl/hash/pbkd.ipp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ BC_PUSH_WARNING(NO_ARRAY_INDEXING)
3636
// static/protected
3737
TEMPLATE
3838
template <size_t Length>
39-
constexpr auto CLASS::
39+
constexpr void CLASS::
4040
xor_n(data_array<Length>& to, const data_array<Length>& from) NOEXCEPT
4141
{
4242
// rfc8018
4343
// F (P, S, c, i) = U_1 \xor U_2 \xor ... \xor U_c
44-
for (size_t i = 0; i < Length; ++i)
44+
for (size_t i{}; i < Length; ++i)
4545
to[i] ^= from[i];
4646
};
4747

0 commit comments

Comments
 (0)