Remove ununsed draw_line. Only draw_lines is used by ImageDraw.py

This commit is contained in:
Hugo 2018-07-04 12:15:06 +03:00
parent 5e0682ed6a
commit bdf2705cd3

View File

@ -2697,22 +2697,6 @@ _draw_ellipse(ImagingDrawObject* self, PyObject* args)
return Py_None;
}
static PyObject*
_draw_line(ImagingDrawObject* self, PyObject* args)
{
int x0, y0, x1, y1;
int ink;
if (!PyArg_ParseTuple(args, "(ii)(ii)i", &x0, &y0, &x1, &y1, &ink))
return NULL;
if (ImagingDrawLine(self->image->image, x0, y0, x1, y1,
&ink, self->blend) < 0)
return NULL;
Py_INCREF(Py_None);
return Py_None;
}
static PyObject*
_draw_lines(ImagingDrawObject* self, PyObject* args)
{
@ -2961,7 +2945,6 @@ _draw_rectangle(ImagingDrawObject* self, PyObject* args)
static struct PyMethodDef _draw_methods[] = {
#ifdef WITH_IMAGEDRAW
/* Graphics (ImageDraw) */
{"draw_line", (PyCFunction)_draw_line, 1},
{"draw_lines", (PyCFunction)_draw_lines, 1},
#ifdef WITH_ARROW
{"draw_outline", (PyCFunction)_draw_outline, 1},