mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Remove ununsed draw_line. Only draw_lines is used by ImageDraw.py
This commit is contained in:
parent
5e0682ed6a
commit
bdf2705cd3
|
@ -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},
|
||||
|
|
Loading…
Reference in New Issue
Block a user