Skip to content

Commit 6ed578f

Browse files
author
Erlend Egeberg Aasland
authored
bpo-40865: Remove unused insint() macro from hash modules (GH-20627)
Automerge-Triggered-By: @tiran
1 parent 7a28019 commit 6ed578f

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

Modules/md5module.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,6 @@ static struct PyMethodDef MD5_functions[] = {
552552

553553
/* Initialize this module. */
554554

555-
#define insint(n,v) { PyModule_AddIntConstant(m,n,v); }
556-
557-
558555
static struct PyModuleDef _md5module = {
559556
PyModuleDef_HEAD_INIT,
560557
"_md5",

Modules/sha1module.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,9 +529,6 @@ static struct PyMethodDef SHA1_functions[] = {
529529

530530
/* Initialize this module. */
531531

532-
#define insint(n,v) { PyModule_AddIntConstant(m,n,v); }
533-
534-
535532
static struct PyModuleDef _sha1module = {
536533
PyModuleDef_HEAD_INIT,
537534
"_sha1",

Modules/sha256module.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -684,9 +684,6 @@ static struct PyMethodDef SHA_functions[] = {
684684

685685
/* Initialize this module. */
686686

687-
#define insint(n,v) { PyModule_AddIntConstant(m,n,v); }
688-
689-
690687
static struct PyModuleDef _sha256module = {
691688
PyModuleDef_HEAD_INIT,
692689
"_sha256",

Modules/sha512module.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -741,9 +741,6 @@ static struct PyMethodDef SHA_functions[] = {
741741

742742
/* Initialize this module. */
743743

744-
#define insint(n,v) { PyModule_AddIntConstant(m,n,v); }
745-
746-
747744
static struct PyModuleDef _sha512module = {
748745
PyModuleDef_HEAD_INIT,
749746
"_sha512",

0 commit comments

Comments
 (0)