mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-25 00:00:34 +03:00
Removed unused variable
This commit is contained in:
parent
6faebd3ff3
commit
6f128c4c39
|
@ -20,7 +20,6 @@ int
|
||||||
ImagingTgaRleDecode(Imaging im, ImagingCodecState state, UINT8 *buf, Py_ssize_t bytes) {
|
ImagingTgaRleDecode(Imaging im, ImagingCodecState state, UINT8 *buf, Py_ssize_t bytes) {
|
||||||
int n, depth;
|
int n, depth;
|
||||||
UINT8 *ptr;
|
UINT8 *ptr;
|
||||||
UINT8 extra_data = 0;
|
|
||||||
int extra_bytes = 0;
|
int extra_bytes = 0;
|
||||||
|
|
||||||
ptr = buf;
|
ptr = buf;
|
||||||
|
@ -77,7 +76,6 @@ ImagingTgaRleDecode(Imaging im, ImagingCodecState state, UINT8 *buf, Py_ssize_t
|
||||||
extra_bytes = n; /* full value */
|
extra_bytes = n; /* full value */
|
||||||
n = state->bytes - state->x;
|
n = state->bytes - state->x;
|
||||||
extra_bytes -= n;
|
extra_bytes -= n;
|
||||||
extra_data = ptr[1];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(state->buffer + state->x, ptr + 1, n);
|
memcpy(state->buffer + state->x, ptr + 1, n);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user