From 4c3107c94088fa99360f1b44fe0e0efb410af781 Mon Sep 17 00:00:00 2001 From: hugovk Date: Sat, 27 May 2017 22:16:40 +0300 Subject: [PATCH] Remove docs about deprecated and already removed code --- docs/reference/ImageDraw.rst | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/docs/reference/ImageDraw.rst b/docs/reference/ImageDraw.rst index 3f1bb7b8d..49cbc2177 100644 --- a/docs/reference/ImageDraw.rst +++ b/docs/reference/ImageDraw.rst @@ -270,24 +270,3 @@ Methods :param text: Text to be measured. :param font: An :py:class:`~PIL.ImageFont.ImageFont` instance. :param spacing: The number of pixels between lines. - -Legacy API ----------- - -The :py:class:`~PIL.ImageDraw.Draw` class contains a constructor and a number -of methods which are provided for backwards compatibility only. For this to -work properly, you should either use options on the drawing primitives, or -these methods. Do not mix the old and new calling conventions. - - -.. py:function:: PIL.ImageDraw.ImageDraw(image) - - :rtype: :py:class:`~PIL.ImageDraw.Draw` - -.. py:method:: PIL.ImageDraw.Draw.setfont(font) - - .. deprecated:: 1.1.5 - - Sets the default font to use for the text method. - - :param font: An :py:class:`~PIL.ImageFont.ImageFont` instance.