mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-14 05:36:48 +03:00
Removed unnecessary code
This commit is contained in:
parent
4bb50b1fa7
commit
04e8a9b3e7
|
@ -1214,7 +1214,7 @@ PyImaging_Jpeg2KEncoderNew(PyObject *self, PyObject *args) {
|
||||||
char mct = 0;
|
char mct = 0;
|
||||||
int sgnd = 0;
|
int sgnd = 0;
|
||||||
Py_ssize_t fd = -1;
|
Py_ssize_t fd = -1;
|
||||||
char * comment = NULL;
|
char *comment = NULL;
|
||||||
int add_plt = 0;
|
int add_plt = 0;
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(
|
if (!PyArg_ParseTuple(
|
||||||
|
@ -1338,8 +1338,6 @@ PyImaging_Jpeg2KEncoderNew(PyObject *self, PyObject *args) {
|
||||||
Py_DECREF(encoder);
|
Py_DECREF(encoder);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
context->comment = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (quality_layers && PySequence_Check(quality_layers)) {
|
if (quality_layers && PySequence_Check(quality_layers)) {
|
||||||
|
|
|
@ -98,7 +98,7 @@ typedef struct {
|
||||||
const char *error_msg;
|
const char *error_msg;
|
||||||
|
|
||||||
/* Custom comment */
|
/* Custom comment */
|
||||||
char * comment;
|
char *comment;
|
||||||
|
|
||||||
/* Include PLT marker segment */
|
/* Include PLT marker segment */
|
||||||
int add_plt;
|
int add_plt;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user