remove unused version value

This commit is contained in:
nulano 2023-03-21 21:46:33 +00:00
parent 1a11ba662c
commit e1d0a96404
No known key found for this signature in database
GPG Key ID: B650CDF63B705766

View File

@ -238,17 +238,6 @@ get_on_pixels(PyObject *self, PyObject *args) {
return ret;
}
static int
setup_module(PyObject *m) {
PyObject *d = PyModule_GetDict(m);
PyObject *version = PyUnicode_FromString("0.1");
PyDict_SetItemString(d, "__version", version);
Py_XDECREF(version);
return 0;
}
static PyMethodDef functions[] = {
/* Functions */
{"apply", (PyCFunction)apply, METH_VARARGS, NULL},
@ -270,9 +259,5 @@ PyInit__imagingmorph(void) {
m = PyModule_Create(&module_def);
if (setup_module(m) < 0) {
return NULL;
}
return m;
}