Merge pull request #2538 from hugovk/not-implemented

Remove code 'not yet implemented' since May 10, 2003
This commit is contained in:
wiredfool 2017-05-23 10:56:29 +01:00 committed by GitHub
commit b742f281ee

18
path.c
View File

@ -313,22 +313,6 @@ path_compact(PyPathObject* self, PyObject* args)
return Py_BuildValue("i", i); /* number of removed vertices */ return Py_BuildValue("i", i); /* number of removed vertices */
} }
static PyObject*
path_clip_polygon(PyPathObject* self, PyObject* args)
{
/* Clip path representing a single polygon */
PyErr_SetString(PyExc_RuntimeError, "not yet implemented");
return NULL;
}
static PyObject*
path_clip_polyline(PyPathObject* self, PyObject* args)
{
/* Clip path representing a single polyline (outline) */
PyErr_SetString(PyExc_RuntimeError, "not yet implemented");
return NULL;
}
static PyObject* static PyObject*
path_getbbox(PyPathObject* self, PyObject* args) path_getbbox(PyPathObject* self, PyObject* args)
{ {
@ -534,8 +518,6 @@ path_transform(PyPathObject* self, PyObject* args)
static struct PyMethodDef methods[] = { static struct PyMethodDef methods[] = {
{"getbbox", (PyCFunction)path_getbbox, 1}, {"getbbox", (PyCFunction)path_getbbox, 1},
{"tolist", (PyCFunction)path_tolist, 1}, {"tolist", (PyCFunction)path_tolist, 1},
{"clip_polygon", (PyCFunction)path_clip_polygon, 1},
{"clip_polyline", (PyCFunction)path_clip_polyline, 1},
{"compact", (PyCFunction)path_compact, 1}, {"compact", (PyCFunction)path_compact, 1},
{"map", (PyCFunction)path_map, 1}, {"map", (PyCFunction)path_map, 1},
{"transform", (PyCFunction)path_transform, 1}, {"transform", (PyCFunction)path_transform, 1},