mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-12 01:02:39 +03:00
Removed C method unused by Python
This commit is contained in:
parent
80e9963dcd
commit
29c1e4c56f
|
@ -30,7 +30,6 @@ class TestUnsupportedJpegXl:
|
||||||
@skip_unless_feature("jpegxl")
|
@skip_unless_feature("jpegxl")
|
||||||
class TestFileJpegXl:
|
class TestFileJpegXl:
|
||||||
def test_version(self) -> None:
|
def test_version(self) -> None:
|
||||||
_jpegxl.JpegXlDecoderVersion()
|
|
||||||
version = features.version_module("jpegxl")
|
version = features.version_module("jpegxl")
|
||||||
assert version is not None
|
assert version is not None
|
||||||
assert re.search(r"\d+\.\d+\.\d+$", version)
|
assert re.search(r"\d+\.\d+\.\d+$", version)
|
||||||
|
|
|
@ -568,13 +568,6 @@ static PyTypeObject PILJpegXlDecoder_Type = {
|
||||||
.tp_methods = _jpegxl_decoder_methods,
|
.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
|
// Version as string
|
||||||
const char *
|
const char *
|
||||||
JpegXlDecoderVersion_str(void) {
|
JpegXlDecoderVersion_str(void) {
|
||||||
|
@ -591,10 +584,6 @@ JpegXlDecoderVersion_str(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyMethodDef jpegxlMethods[] = {
|
static PyMethodDef jpegxlMethods[] = {
|
||||||
{"JpegXlDecoderVersion",
|
|
||||||
JpegXlDecoderVersion_wrapper,
|
|
||||||
METH_NOARGS,
|
|
||||||
"JpegXlVersion"},
|
|
||||||
{"PILJpegXlDecoder", _jxl_decoder_new, METH_VARARGS, "PILJpegXlDecoder"},
|
{"PILJpegXlDecoder", _jxl_decoder_new, METH_VARARGS, "PILJpegXlDecoder"},
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user