From 29c1e4c56f571829096aeebaadac023980c1693f Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 9 May 2025 19:59:01 +1000 Subject: [PATCH] Removed C method unused by Python --- Tests/test_file_jxl.py | 1 - src/_jpegxl.c | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/Tests/test_file_jxl.py b/Tests/test_file_jxl.py index 5f50018d6..f214942c6 100644 --- a/Tests/test_file_jxl.py +++ b/Tests/test_file_jxl.py @@ -30,7 +30,6 @@ class TestUnsupportedJpegXl: @skip_unless_feature("jpegxl") class TestFileJpegXl: def test_version(self) -> None: - _jpegxl.JpegXlDecoderVersion() version = features.version_module("jpegxl") assert version is not None assert re.search(r"\d+\.\d+\.\d+$", version) diff --git a/src/_jpegxl.c b/src/_jpegxl.c index 3c10b9153..750d563ca 100644 --- a/src/_jpegxl.c +++ b/src/_jpegxl.c @@ -568,13 +568,6 @@ static PyTypeObject PILJpegXlDecoder_Type = { .tp_methods = _jpegxl_decoder_methods, }; -// Return libjxl decoder version available as integer: -// MAJ*1_000_000 + MIN*1_000 + PATCH -PyObject * -JpegXlDecoderVersion_wrapper() { - return Py_BuildValue("i", JxlDecoderVersion()); -} - // Version as string const char * JpegXlDecoderVersion_str(void) { @@ -591,10 +584,6 @@ JpegXlDecoderVersion_str(void) { } static PyMethodDef jpegxlMethods[] = { - {"JpegXlDecoderVersion", - JpegXlDecoderVersion_wrapper, - METH_NOARGS, - "JpegXlVersion"}, {"PILJpegXlDecoder", _jxl_decoder_new, METH_VARARGS, "PILJpegXlDecoder"}, {NULL, NULL} };