From 087c5eeefd51f51143124cbde4a78690e21562b8 Mon Sep 17 00:00:00 2001 From: Poruri Sai Rahul Date: Mon, 3 May 2021 16:10:48 +0530 Subject: [PATCH] CLN : Remove an PY_MAJOR_VERSION conditional in quartz backend modified: kiva/quartz/mac_context.c --- kiva/quartz/mac_context.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/kiva/quartz/mac_context.c b/kiva/quartz/mac_context.c index 30f30dd9e..ccc711c6d 100644 --- a/kiva/quartz/mac_context.c +++ b/kiva/quartz/mac_context.c @@ -41,8 +41,6 @@ static PyMethodDef mac_context_methods[] = { {NULL, NULL} }; -#if PY_MAJOR_VERSION >= 3 - static struct PyModuleDef mac_context_module = { PyModuleDef_HEAD_INIT, "mac_context", /* m_name */ @@ -60,12 +58,3 @@ PyInit_mac_context(void) { return PyModule_Create(&mac_context_module); } - -#else - -void initmac_context(void) -{ - Py_InitModule("mac_context", mac_context_methods); -} - -#endif