Skip to content

Commit e1d0a96

Browse files
committed
remove unused version value
1 parent 1a11ba6 commit e1d0a96

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/_imagingmorph.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -238,17 +238,6 @@ get_on_pixels(PyObject *self, PyObject *args) {
238238
return ret;
239239
}
240240

241-
static int
242-
setup_module(PyObject *m) {
243-
PyObject *d = PyModule_GetDict(m);
244-
245-
PyObject *version = PyUnicode_FromString("0.1");
246-
PyDict_SetItemString(d, "__version", version);
247-
Py_XDECREF(version);
248-
249-
return 0;
250-
}
251-
252241
static PyMethodDef functions[] = {
253242
/* Functions */
254243
{"apply", (PyCFunction)apply, METH_VARARGS, NULL},
@@ -270,9 +259,5 @@ PyInit__imagingmorph(void) {
270259

271260
m = PyModule_Create(&module_def);
272261

273-
if (setup_module(m) < 0) {
274-
return NULL;
275-
}
276-
277262
return m;
278263
}

0 commit comments

Comments
 (0)