8000 bpo-37055: fix warnings in _blake2 module (GH-14646) · python/cpython@b27cbec · GitHub
[go: up one dir, main page]

Skip to content

Commit b27cbec

Browse files
methanemiss-islington
authored andcommitted
bpo-37055: fix warnings in _blake2 module (GH-14646)
https://bugs.python.org/issue37055 Automerge-Triggered-By: @tiran
1 parent 77df9a1 commit b27cbec

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

Modules/_blake2/impl/blake2.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,6 @@ extern "C" {
169169
BLAKE2_API int blake2sp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
170170
BLAKE2_API int blake2bp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
171171

172-
static inline int blake2( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen )
173-
{
174-
return blake2b( out, in, key, outlen, inlen, keylen );
175-
}
176-
177172
#if defined(__cplusplus)
178173
}
179174
#endif

Modules/_blake2/impl/blake2b.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,6 @@ static inline int blake2b_init0( blake2b_state *S )
189189

190190

191191

192-
#define blake2b_init BLAKE2_IMPL_NAME(blake2b_init)
193-
#define blake2b_init_param BLAKE2_IMPL_NAME(blake2b_init_param)
194-
#define blake2b_init_key BLAKE2_IMPL_NAME(blake2b_init_key)
195-
#define blake2b_update BLAKE2_IMPL_NAME(blake2b_update)
196-
#define blake2b_final BLAKE2_IMPL_NAME(blake2b_final)
197-
#define blake2b BLAKE2_IMPL_NAME(blake2b)
198-
199192
#if defined(__cplusplus)
200193
extern "C" {
201194
#endif

Modules/_blake2/impl/blake2s.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,6 @@ static inline int blake2s_init0( blake2s_state *S )
175175
return 0;
176176
}
177177

178-
#define blake2s_init BLAKE2_IMPL_NAME(blake2s_init)
179-
#define blake2s_init_param BLAKE2_IMPL_NAME(blake2s_init_param)
180-
#define blake2s_init_key BLAKE2_IMPL_NAME(blake2s_init_key)
181-
#define blake2s_update BLAKE2_IMPL_NAME(blake2s_update)
182-
#define blake2s_final BLAKE2_IMPL_NAME(blake2s_final)
183-
#define blake2s BLAKE2_IMPL_NAME(blake2s)
184-
185178
#if defined(__cplusplus)
186179
extern "C" {
187180
#endif

0 commit comments

Comments
 (0)
0