@@ -525,38 +525,6 @@ PyRendererAgg_draw_gouraud_triangles(PyRendererAgg *self, PyObject *args, PyObje
525525 Py_RETURN_NONE;
526526}
527527
528- static PyObject *PyRendererAgg_tostring_rgb (PyRendererAgg *self, PyObject *args, PyObject *kwds)
529- {
530- PyObject *buffobj = NULL ;
531-
532- buffobj = PyBytes_FromStringAndSize (NULL , self->x ->get_width () * self->x ->get_height () * 3 );
533- if (buffobj == NULL ) {
534- return NULL ;
535- }
536-
537- CALL_CPP_CLEANUP (" tostring_rgb" ,
538- (self->x ->tostring_rgb ((uint8_t *)PyBytes_AS_STRING (buffobj))),
539- Py_DECREF (buffobj));
540-
541- return buffobj;
542- }
543-
544- static PyObject *PyRendererAgg_tostring_argb (PyRendererAgg *self, PyObject *args, PyObject *kwds)
545- {
546- PyObject *buffobj = NULL ;
547-
548- buffobj = PyBytes_FromStringAndSize (NULL , self->x ->get_width () * self->x ->get_height () * 4 );
549- if (buffobj == NULL ) {
550- return NULL ;
551- }
552-
553- CALL_CPP_CLEANUP (" tostring_argb" ,
554- (self->x ->tostring_argb ((uint8_t *)PyBytes_AS_STRING (buffobj))),
555- Py_DECREF (buffobj));
556-
557- return buffobj;
558- }
559-
560528static PyObject *
561529PyRendererAgg_get_content_extents (PyRendererAgg *self, PyObject *args, PyObject *kwds)
562530{
@@ -664,8 +632,6 @@ static PyTypeObject *PyRendererAgg_init_type(PyObject *m, PyTypeObject *type)
664632 {" draw_gouraud_triangle" , (PyCFunction)PyRendererAgg_draw_gouraud_triangle, METH_VARARGS, NULL },
665633 {" draw_gouraud_triangles" , (PyCFunction)PyRendererAgg_draw_gouraud_triangles, METH_VARARGS, NULL },
666634
667- {" tostring_rgb" , (PyCFunction)PyRendererAgg_tostring_rgb, METH_NOARGS, NULL },
668- {" tostring_argb" , (PyCFunction)PyRendererAgg_tostring_argb, METH_NOARGS, NULL },
669635 {" get_content_extents" , (PyCFunction)PyRendererAgg_get_content_extents, METH_NOARGS, NULL },
670636 {" buffer_rgba" , (PyCFunction)PyRendererAgg_buffer_rgba, METH_NOARGS, NULL },
671637 {" clear" , (PyCFunction)PyRendererAgg_clear, METH_NOARGS, NULL },
0 commit comments