From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 4 Jun 2020 20:27:23 +0000 (-0700) Subject: bpo-40865: Remove unused insint() macro from hash modules (GH-20627) X-Git-Tag: v3.9.0b2~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4e5ec18e2f79f9bba439b531ebf89ac148deda0;p=thirdparty%2FPython%2Fcpython.git bpo-40865: Remove unused insint() macro from hash modules (GH-20627) Automerge-Triggered-By: @tiran (cherry picked from commit 6ed578f6dbffdec94f62cc2e36d626fc195678d7) Co-authored-by: Erlend Egeberg Aasland --- diff --git a/Modules/md5module.c b/Modules/md5module.c index ea2bafb9b65e..e4d9db40f22d 100644 --- a/Modules/md5module.c +++ b/Modules/md5module.c @@ -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", diff --git a/Modules/sha1module.c b/Modules/sha1module.c index e066b8802294..b0656d83b3ae 100644 --- a/Modules/sha1module.c +++ b/Modules/sha1module.c @@ -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", diff --git a/Modules/sha256module.c b/Modules/sha256module.c index e0ff9b2b3a18..8edb1d538288 100644 --- a/Modules/sha256module.c +++ b/Modules/sha256module.c @@ -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", diff --git a/Modules/sha512module.c b/Modules/sha512module.c index 780f8e7f06c9..561ef8ef0e86 100644 --- a/Modules/sha512module.c +++ b/Modules/sha512module.c @@ -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",