Remove WITH_DEBUG compilation flag, non-debug code relies on interface existence

This commit is contained in:
wiredfool 2017-05-12 02:55:44 -07:00
parent 8b8f150d37
commit 9385de58a7

View File

@ -96,8 +96,6 @@
#define WITH_THREADING /* "friendly" threading support */
#define WITH_UNSHARPMASK /* Kevin Cazabon's unsharpmask module */
#define WITH_DEBUG /* extra debugging interfaces */
#undef VERBOSE
#define CLIP(x) ((x) <= 0 ? 0 : (x) < 256 ? (x) : 255)
@ -2922,8 +2920,6 @@ _getcodecstatus(PyObject* self, PyObject* args)
/* -------------------------------------------------------------------- */
#ifdef WITH_DEBUG
static PyObject*
_save_ppm(ImagingObject* self, PyObject* args)
{
@ -2939,7 +2935,6 @@ _save_ppm(ImagingObject* self, PyObject* args)
return Py_None;
}
#endif
/* -------------------------------------------------------------------- */
@ -3035,9 +3030,7 @@ static struct PyMethodDef methods[] = {
{"new_array", (PyCFunction)_new_array, 1},
{"new_block", (PyCFunction)_new_block, 1},
#ifdef WITH_DEBUG
{"save_ppm", (PyCFunction)_save_ppm, 1},
#endif
{NULL, NULL} /* sentinel */
};