@@ -63,35 +63,6 @@ static void PyFT2Image_dealloc(PyFT2Image *self)
63
63
Py_TYPE (self)->tp_free ((PyObject *)self);
64
64
}
65
65
66
- const char *PyFT2Image_draw_rect__doc__ =
67
- " draw_rect(self, x0, y0, x1, y1)\n "
68
- " --\n\n "
69
- " Draw an empty rectangle to the image.\n "
70
- " \n "
71
- " .. deprecated:: 3.8\n " ;
72
- ;
73
-
74
- static PyObject *PyFT2Image_draw_rect (PyFT2Image *self, PyObject *args)
75
- {
76
- char const * msg =
77
- " FT2Image.draw_rect is deprecated since Matplotlib 3.8 and will be removed "
78
- " in Matplotlib 3.10 as it is not used in the library. If you rely on it, "
79
- " please let us know." ;
80
- if (PyErr_WarnEx (PyExc_DeprecationWarning, msg, 1 )) {
81
- return NULL ;
82
- }
83
-
84
- double x0, y0 , x1, y1 ;
85
-
86
- if (!PyArg_ParseTuple (args, " dddd:draw_rect" , &x0, &y0 , &x1, &y1 )) {
87
- return NULL ;
88
- }
89
-
90
- CALL_CPP (" draw_rect" , (self->x ->draw_rect (x0, y0 , x1, y1 )));
91
-
92
- Py_RETURN_NONE;
93
- }
94
-
95
66
const char *PyFT2Image_draw_rect_filled__doc__ =
96
67
" draw_rect_filled(self, x0, y0, x1, y1)\n "
97
68
" --\n\n "
@@ -137,7 +108,6 @@ static int PyFT2Image_get_buffer(PyFT2Image *self, Py_buffer *buf, int flags)
137
108
static PyTypeObject* PyFT2Image_init_type ()
138
109
{
139
110
static PyMethodDef methods[] = {
140
- {" draw_rect" , (PyCFunction)PyFT2Image_draw_rect, METH_VARARGS, PyFT2Image_draw_rect__doc__},
141
111
{" draw_rect_filled" , (PyCFunction)PyFT2Image_draw_rect_filled, METH_VARARGS, PyFT2Image_draw_rect_filled__doc__},
142
112
{NULL }
143
113
};
@@ -856,37 +826,6 @@ static PyObject *PyFT2Font_draw_glyphs_to_bitmap(PyFT2Font *self, PyObject *args
856
826
Py_RETURN_NONE;
857
827
}
858
828
859
- const char *PyFT2Font_get_xys__doc__ =
860
- " get_xys(self, antialiased=True)\n "
861
- " --\n\n "
862
- " Get the xy locations of the current glyphs.\n "
863
- " \n "
864
- " .. deprecated:: 3.8\n " ;
865
-
866
- static PyObject *PyFT2Font_get_xys (PyFT2Font *self, PyObject *args, PyObject *kwds)
867
- {
868
- char const * msg =
869
- " FT2Font.get_xys is deprecated since Matplotlib 3.8 and will be removed in "
870
- " Matplotlib 3.10 as it is not used in the library. If you rely on it, "
871
- " please let us know." ;
872
- if (PyErr_WarnEx (PyExc_DeprecationWarning, msg, 1 )) {
873
- return NULL ;
874
- }
875
-
876
- bool antialiased = true ;
877
- std::vector<double > xys;
878
- const char *names[] = { " antialiased" , NULL };
879
-
880
- if (!PyArg_ParseTupleAndKeywords (args, kwds, " |O&:get_xys" ,
881
- (char **)names, &convert_bool, &antialiased)) {
882
- return NULL ;
883
- }
884
-
885
- CALL_CPP (" get_xys" , (self->x ->get_xys (antialiased, xys)));
886
-
887
- return convert_xys_to_array (xys);
888
- }
889
-
890
829
const char *PyFT2Font_draw_glyph_to_bitmap__doc__ =
891
830
" draw_glyph_to_bitmap(self, image, x, y, glyph, antialiased=True)\n "
892
831
" --\n\n "
@@ -1517,7 +1456,6 @@ static PyTypeObject *PyFT2Font_init_type()
1517
1456
{" get_bitmap_offset" , (PyCFunction)PyFT2Font_get_bitmap_offset, METH_NOARGS, PyFT2Font_get_bitmap_offset__doc__},
1518
1457
{" get_descent" , (PyCFunction)PyFT2Font_get_descent, METH_NOARGS, PyFT2Font_get_descent__doc__},
1519
1458
{" draw_glyphs_to_bitmap" , (PyCFunction)PyFT2Font_draw_glyphs_to_bitmap, METH_VARARGS|METH_KEYWORDS, PyFT2Font_draw_glyphs_to_bitmap__doc__},
1520
- {" get_xys" , (PyCFunction)PyFT2Font_get_xys, METH_VARARGS|METH_KEYWORDS, PyFT2Font_get_xys__doc__},
1521
1459
{" draw_glyph_to_bitmap" , (PyCFunction)PyFT2Font_draw_glyph_to_bitmap, METH_VARARGS|METH_KEYWORDS, PyFT2Font_draw_glyph_to_bitmap__doc__},
1522
1460
{" get_glyph_name" , (PyCFunction)PyFT2Font_get_glyph_name, METH_VARARGS, PyFT2Font_get_glyph_name__doc__},
1523
1461
{" get_charmap" , (PyCFunction)PyFT2Font_get_charmap, METH_NOARGS, PyFT2Font_get_charmap__doc__},
0 commit comments