|
108 | 108 | #define S16(v) ((v) < 32768 ? (v) : ((v) - 65536)) |
109 | 109 |
|
110 | 110 | /* -------------------------------------------------------------------- */ |
111 | | -/* OBJECT ADMINISTRATION */ |
| 111 | +/* OBJECT ADMINISTRATION */ |
112 | 112 | /* -------------------------------------------------------------------- */ |
113 | 113 |
|
114 | 114 | typedef struct { |
@@ -375,7 +375,7 @@ ImagingError_ValueError(const char *message) { |
375 | 375 | } |
376 | 376 |
|
377 | 377 | /* -------------------------------------------------------------------- */ |
378 | | -/* HELPERS */ |
| 378 | +/* HELPERS */ |
379 | 379 | /* -------------------------------------------------------------------- */ |
380 | 380 |
|
381 | 381 | static int |
@@ -679,7 +679,7 @@ getink(PyObject *color, Imaging im, char *ink) { |
679 | 679 | } |
680 | 680 |
|
681 | 681 | /* -------------------------------------------------------------------- */ |
682 | | -/* FACTORIES */ |
| 682 | +/* FACTORIES */ |
683 | 683 | /* -------------------------------------------------------------------- */ |
684 | 684 |
|
685 | 685 | static PyObject * |
@@ -3607,7 +3607,7 @@ _effect_spread(ImagingObject *self, PyObject *args) { |
3607 | 3607 | } |
3608 | 3608 |
|
3609 | 3609 | /* -------------------------------------------------------------------- */ |
3610 | | -/* UTILITIES */ |
| 3610 | +/* UTILITIES */ |
3611 | 3611 | /* -------------------------------------------------------------------- */ |
3612 | 3612 |
|
3613 | 3613 | static PyObject * |
@@ -3642,25 +3642,6 @@ _getcodecstatus(PyObject *self, PyObject *args) { |
3642 | 3642 | return PyUnicode_FromString(msg); |
3643 | 3643 | } |
3644 | 3644 |
|
3645 | | -/* -------------------------------------------------------------------- */ |
3646 | | -/* DEBUGGING HELPERS */ |
3647 | | -/* -------------------------------------------------------------------- */ |
3648 | | - |
3649 | | -static PyObject * |
3650 | | -_save_ppm(ImagingObject *self, PyObject *args) { |
3651 | | - char *filename; |
3652 | | - |
3653 | | - if (!PyArg_ParseTuple(args, "s", &filename)) { |
3654 | | - return NULL; |
3655 | | - } |
3656 | | - |
3657 | | - if (!ImagingSavePPM(self->image, filename)) { |
3658 | | - return NULL; |
3659 | | - } |
3660 | | - |
3661 | | - Py_RETURN_NONE; |
3662 | | -} |
3663 | | - |
3664 | 3645 | /* -------------------------------------------------------------------- */ |
3665 | 3646 |
|
3666 | 3647 | /* methods */ |
@@ -3744,9 +3725,6 @@ static struct PyMethodDef methods[] = { |
3744 | 3725 | /* Special effects */ |
3745 | 3726 | {"effect_spread", (PyCFunction)_effect_spread, METH_VARARGS}, |
3746 | 3727 |
|
3747 | | - /* Misc. */ |
3748 | | - {"save_ppm", (PyCFunction)_save_ppm, METH_VARARGS}, |
3749 | | - |
3750 | 3728 | /* arrow */ |
3751 | 3729 | {"__arrow_c_schema__", (PyCFunction)ExportArrowSchemaPyCapsule, METH_VARARGS}, |
3752 | 3730 | {"__arrow_c_array__", (PyCFunction)ExportArrowArrayPyCapsule, METH_VARARGS}, |
|
0 commit comments