Removed C method unused by Python

This commit is contained in:
Andrew Murray 2025-05-09 19:59:01 +10:00
parent 80e9963dcd
commit 29c1e4c56f
2 changed files with 0 additions and 12 deletions

View File

@ -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)

View File

@ -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}
};