mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 19:36:38 +03:00
Remove ununsed draw_point. Only draw_points is used by ImageDraw.py
This commit is contained in:
parent
bdf2705cd3
commit
6fc1e79e96
|
@ -2750,21 +2750,6 @@ _draw_lines(ImagingDrawObject* self, PyObject* args)
|
||||||
return Py_None;
|
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*
|
static PyObject*
|
||||||
_draw_points(ImagingDrawObject* self, PyObject* args)
|
_draw_points(ImagingDrawObject* self, PyObject* args)
|
||||||
{
|
{
|
||||||
|
@ -2951,7 +2936,6 @@ static struct PyMethodDef _draw_methods[] = {
|
||||||
#endif
|
#endif
|
||||||
{"draw_polygon", (PyCFunction)_draw_polygon, 1},
|
{"draw_polygon", (PyCFunction)_draw_polygon, 1},
|
||||||
{"draw_rectangle", (PyCFunction)_draw_rectangle, 1},
|
{"draw_rectangle", (PyCFunction)_draw_rectangle, 1},
|
||||||
{"draw_point", (PyCFunction)_draw_point, 1},
|
|
||||||
{"draw_points", (PyCFunction)_draw_points, 1},
|
{"draw_points", (PyCFunction)_draw_points, 1},
|
||||||
{"draw_arc", (PyCFunction)_draw_arc, 1},
|
{"draw_arc", (PyCFunction)_draw_arc, 1},
|
||||||
{"draw_bitmap", (PyCFunction)_draw_bitmap, 1},
|
{"draw_bitmap", (PyCFunction)_draw_bitmap, 1},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user