Skip to content

Commit

Permalink
Merge pull request #8355 from radarhere/unused_tiff
Browse files Browse the repository at this point in the history
Removed unused TiffImagePlugin IFD_LEGACY_API
  • Loading branch information
radarhere authored Sep 8, 2024
2 parents a3d2316 + 94315f8 commit 579a5a2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions docs/deprecations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ Removed features
Deprecated features are only removed in major releases after an appropriate
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
~~~~~~

Expand Down
5 changes: 5 additions & 0 deletions docs/releasenotes/11.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
similarly removed.

TiffImagePlugin IFD_LEGACY_API
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

An unused setting, ``TiffImagePlugin.IFD_LEGACY_API``, has been removed.

Deprecations
============

Expand Down
3 changes: 1 addition & 2 deletions src/PIL/TiffImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
# Set these to true to force use of libtiff for reading or writing.
READ_LIBTIFF = False
WRITE_LIBTIFF = False
IFD_LEGACY_API = True
STRIP_SIZE = 65536

II = b"II" # little-endian (Intel style)
Expand Down Expand Up @@ -1125,7 +1124,7 @@ def __getitem__(self, tag: int) -> Any:
return val


# undone -- switch this pointer when IFD_LEGACY_API == False
# undone -- switch this pointer
ImageFileDirectory = ImageFileDirectory_v1


Expand Down

0 comments on commit 579a5a2

Please sign in to comment.