]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40865: Remove unused insint() macro from hash modules (GH-20627)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Thu, 4 Jun 2020 20:08:42 +0000 (22:08 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Jun 2020 20:08:42 +0000 (13:08 -0700)
Automerge-Triggered-By: @tiran
Modules/md5module.c
Modules/sha1module.c
Modules/sha256module.c
Modules/sha512module.c

index ea2bafb9b65e8eff7377b4104b59bfc76c5d7b6b..e4d9db40f22df36f8b78c4dfb3a758a2f5e6f0b9 100644 (file)
@@ -552,9 +552,6 @@ static struct PyMethodDef MD5_functions[] = {
 
 /* Initialize this module. */
 
-#define insint(n,v) { PyModule_AddIntConstant(m,n,v); }
-
-
 static struct PyModuleDef _md5module = {
         PyModuleDef_HEAD_INIT,
         "_md5",
index e066b8802294165055a8acaa39d671bcfc775e82..b0656d83b3ae8bdb7ae039d49a2d3b705d45a104 100644 (file)
@@ -529,9 +529,6 @@ static struct PyMethodDef SHA1_functions[] = {
 
 /* Initialize this module. */
 
-#define insint(n,v) { PyModule_AddIntConstant(m,n,v); }
-
-
 static struct PyModuleDef _sha1module = {
         PyModuleDef_HEAD_INIT,
         "_sha1",
index e0ff9b2b3a187c7a4e9ad5a429ac651f021dc992..8edb1d53828835ee19cb40dc1019760b8c7f3c43 100644 (file)
@@ -684,9 +684,6 @@ static struct PyMethodDef SHA_functions[] = {
 
 /* Initialize this module. */
 
-#define insint(n,v) { PyModule_AddIntConstant(m,n,v); }
-
-
 static struct PyModuleDef _sha256module = {
         PyModuleDef_HEAD_INIT,
         "_sha256",
index 780f8e7f06c9e94ac159c7f7e88427421866a73a..561ef8ef0e8676185650403b6df8b742163dc2ed 100644 (file)
@@ -741,9 +741,6 @@ static struct PyMethodDef SHA_functions[] = {
 
 /* Initialize this module. */
 
-#define insint(n,v) { PyModule_AddIntConstant(m,n,v); }
-
-
 static struct PyModuleDef _sha512module = {
         PyModuleDef_HEAD_INIT,
         "_sha512",