|
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 { |
@@ -379,7 +379,7 @@ ImagingError_ValueError(const char *message) { |
379 | 379 | } |
380 | 380 |
|
381 | 381 | /* -------------------------------------------------------------------- */ |
382 | | -/* HELPERS */ |
| 382 | +/* HELPERS */ |
383 | 383 | /* -------------------------------------------------------------------- */ |
384 | 384 |
|
385 | 385 | static int |
@@ -683,7 +683,7 @@ getink(PyObject *color, Imaging im, char *ink) { |
683 | 683 | } |
684 | 684 |
|
685 | 685 | /* -------------------------------------------------------------------- */ |
686 | | -/* FACTORIES */ |
| 686 | +/* FACTORIES */ |
687 | 687 | /* -------------------------------------------------------------------- */ |
688 | 688 |
|
689 | 689 | static PyObject * |
@@ -3611,7 +3611,7 @@ _effect_spread(ImagingObject *self, PyObject *args) { |
3611 | 3611 | } |
3612 | 3612 |
|
3613 | 3613 | /* -------------------------------------------------------------------- */ |
3614 | | -/* UTILITIES */ |
| 3614 | +/* UTILITIES */ |
3615 | 3615 | /* -------------------------------------------------------------------- */ |
3616 | 3616 |
|
3617 | 3617 | static PyObject * |
@@ -3646,25 +3646,6 @@ _getcodecstatus(PyObject *self, PyObject *args) { |
3646 | 3646 | return PyUnicode_FromString(msg); |
3647 | 3647 | } |
3648 | 3648 |
|
3649 | | -/* -------------------------------------------------------------------- */ |
3650 | | -/* DEBUGGING HELPERS */ |
3651 | | -/* -------------------------------------------------------------------- */ |
3652 | | - |
3653 | | -static PyObject * |
3654 | | -_save_ppm(ImagingObject *self, PyObject *args) { |
3655 | | - char *filename; |
3656 | | - |
3657 | | - if (!PyArg_ParseTuple(args, "s", &filename)) { |
3658 | | - return NULL; |
3659 | | - } |
3660 | | - |
3661 | | - if (!ImagingSavePPM(self->image, filename)) { |
3662 | | - return NULL; |
3663 | | - } |
3664 | | - |
3665 | | - Py_RETURN_NONE; |
3666 | | -} |
3667 | | - |
3668 | 3649 | /* -------------------------------------------------------------------- */ |
3669 | 3650 |
|
3670 | 3651 | /* methods */ |
@@ -3748,9 +3729,6 @@ static struct PyMethodDef methods[] = { |
3748 | 3729 | /* Special effects */ |
3749 | 3730 | {"effect_spread", (PyCFunction)_effect_spread, METH_VARARGS}, |
3750 | 3731 |
|
3751 | | - /* Misc. */ |
3752 | | - {"save_ppm", (PyCFunction)_save_ppm, METH_VARARGS}, |
3753 | | - |
3754 | 3732 | /* arrow */ |
3755 | 3733 | {"__arrow_c_schema__", (PyCFunction)ExportArrowSchemaPyCapsule, METH_VARARGS}, |
3756 | 3734 | {"__arrow_c_array__", (PyCFunction)ExportArrowArrayPyCapsule, METH_VARARGS}, |
|
0 commit comments