Remove next major release deprecations

This commit is contained in:
James R. Barlow
2023-11-21 00:47:51 -08:00
parent 3f7b540f76
commit fec53be841
2 changed files with 1 additions and 9 deletions
+1 -7
View File
@@ -71,15 +71,9 @@ def jpg_name(root: Path, xref: Xref) -> Path:
def extract_image_filter(
image: Stream, xref: Xref, *args
image: Stream, xref: Xref
) -> tuple[PdfImage, tuple[Name, Object]] | None:
"""Determine if an image is extractable."""
if isinstance(image, Pdf):
# Support deprecated old function signature
# TODO Remove for v16 and drop *args from current function signature
image, xref = args[0], args[1]
warn("extract_image_filter: pdf, root parameters ignored", DeprecationWarning)
if image.Subtype != Name.Image:
return None
if image.Length < 100: