Remove ununsed draw_point. Only draw_points is used by ImageDraw.py

This commit is contained in:
Hugo 2018-07-04 12:19:32 +03:00
parent bdf2705cd3
commit 6fc1e79e96

View File

@ -2750,21 +2750,6 @@ _draw_lines(ImagingDrawObject* self, PyObject* args)
return Py_None;
}
static PyObject*
_draw_point(ImagingDrawObject* self, PyObject* args)
{
int x, y;
int ink;
if (!PyArg_ParseTuple(args, "(ii)i", &x, &y, &ink))
return NULL;
if (ImagingDrawPoint(self->image->image, x, y, &ink, self->blend) < 0)
return NULL;
Py_INCREF(Py_None);
return Py_None;
}
static PyObject*
_draw_points(ImagingDrawObject* self, PyObject* args)
{
@ -2951,7 +2936,6 @@ static struct PyMethodDef _draw_methods[] = {
#endif
{"draw_polygon", (PyCFunction)_draw_polygon, 1},
{"draw_rectangle", (PyCFunction)_draw_rectangle, 1},
{"draw_point", (PyCFunction)_draw_point, 1},
{"draw_points", (PyCFunction)_draw_points, 1},
{"draw_arc", (PyCFunction)_draw_arc, 1},
{"draw_bitmap", (PyCFunction)_draw_bitmap, 1},