Removed unused IFD_LEGACY_API

This commit is contained in:
Andrew Murray 2024-09-06 19:13:35 +10:00
parent 6377321625
commit 94315f87c3
3 changed files with 13 additions and 2 deletions

View File

@ -142,6 +142,13 @@ Removed features
Deprecated features are only removed in major releases after an appropriate Deprecated features are only removed in major releases after an appropriate
period of deprecation has passed. period of deprecation has passed.
TiffImagePlugin IFD_LEGACY_API
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. versionremoved:: 11.0.0
``TiffImagePlugin.IFD_LEGACY_API`` was removed, as it was an unused setting.
PSFile PSFile
~~~~~~ ~~~~~~

View File

@ -40,6 +40,11 @@ removed. Pillow's C API will now be used on PyPy instead.
``Image.USE_CFFI_ACCESS``, for switching from the C API to PyAccess, was ``Image.USE_CFFI_ACCESS``, for switching from the C API to PyAccess, was
similarly removed. similarly removed.
TiffImagePlugin IFD_LEGACY_API
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
An unused setting, ``TiffImagePlugin.IFD_LEGACY_API``, has been removed.
Deprecations Deprecations
============ ============

View File

@ -69,7 +69,6 @@ logger = logging.getLogger(__name__)
# Set these to true to force use of libtiff for reading or writing. # Set these to true to force use of libtiff for reading or writing.
READ_LIBTIFF = False READ_LIBTIFF = False
WRITE_LIBTIFF = False WRITE_LIBTIFF = False
IFD_LEGACY_API = True
STRIP_SIZE = 65536 STRIP_SIZE = 65536
II = b"II" # little-endian (Intel style) II = b"II" # little-endian (Intel style)
@ -1125,7 +1124,7 @@ class ImageFileDirectory_v1(ImageFileDirectory_v2):
return val return val
# undone -- switch this pointer when IFD_LEGACY_API == False # undone -- switch this pointer
ImageFileDirectory = ImageFileDirectory_v1 ImageFileDirectory = ImageFileDirectory_v1