Skip to content

Commit

Permalink
Remove ifdefs for handling old python
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeplf authored and anilbey committed Sep 20, 2023
1 parent 740ea34 commit f8460e4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions efel/cppcore/cppcore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@
#include <cfeature.h>
#include <efel.h>

#if PY_MAJOR_VERSION >= 3
#define IS_PY3K
#endif


extern cFeature* pFeature;

static PyObject* CppCoreInitialize(PyObject* self, PyObject* args) {
Expand Down Expand Up @@ -326,7 +321,6 @@ static PyMethodDef CppCoreMethods[] = {
{NULL, NULL, 0, NULL} /* Sentinel */
};

#if PY_MAJOR_VERSION >= 3
struct module_state {
PyObject* error;
};
Expand All @@ -351,8 +345,3 @@ extern "C" PyObject* PyInit_cppcore(void) {
PyObject* module = PyModule_Create(&moduledef);
return module;
}
#else
PyMODINIT_FUNC initcppcore(void) {
(void)Py_InitModule("cppcore", CppCoreMethods);
}
#endif

0 comments on commit f8460e4

Please sign in to comment.