mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-28 18:24:57 +03:00
remove unused version value
This commit is contained in:
parent
1a11ba662c
commit
e1d0a96404
|
@ -238,17 +238,6 @@ get_on_pixels(PyObject *self, PyObject *args) {
|
||||||
return ret;
|
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[] = {
|
static PyMethodDef functions[] = {
|
||||||
/* Functions */
|
/* Functions */
|
||||||
{"apply", (PyCFunction)apply, METH_VARARGS, NULL},
|
{"apply", (PyCFunction)apply, METH_VARARGS, NULL},
|
||||||
|
@ -270,9 +259,5 @@ PyInit__imagingmorph(void) {
|
||||||
|
|
||||||
m = PyModule_Create(&module_def);
|
m = PyModule_Create(&module_def);
|
||||||
|
|
||||||
if (setup_module(m) < 0) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return m;
|
return m;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user