Skip to content

Commit

Permalink
Removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Mar 15, 2022
1 parent 6faebd3 commit 6f128c4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/libImaging/TgaRleDecode.c
Expand Up @@ -20,7 +20,6 @@ int
ImagingTgaRleDecode(Imaging im, ImagingCodecState state, UINT8 *buf, Py_ssize_t bytes) {
int n, depth;
UINT8 *ptr;
UINT8 extra_data = 0;
int extra_bytes = 0;

ptr = buf;
Expand Down Expand Up @@ -77,7 +76,6 @@ ImagingTgaRleDecode(Imaging im, ImagingCodecState state, UINT8 *buf, Py_ssize_t
extra_bytes = n; /* full value */
n = state->bytes - state->x;
extra_bytes -= n;
extra_data = ptr[1];
}

memcpy(state->buffer + state->x, ptr + 1, n);
Expand Down

0 comments on commit 6f128c4

Please sign in to comment.