summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-02-06 19:59:30 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2017-02-06 20:32:57 +0000
commit4a6136b81993da5c838df13eb3b1433deb87abf4 (patch)
treefe4b2dfba4df63b7d9c9283174a6d71b67cde0e3
parentce45f8bc146aac4ce08554112ddeb52cf37848de (diff)
downloadlibnsgif-4a6136b81993da5c838df13eb3b1433deb87abf4.tar.gz
libnsgif-4a6136b81993da5c838df13eb3b1433deb87abf4.tar.bz2
Remove pointless current_error from API surface.
-rw-r--r--include/libnsgif.h2
-rw-r--r--src/libnsgif.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/include/libnsgif.h b/include/libnsgif.h
index 33b4b19..fd92a0a 100644
--- a/include/libnsgif.h
+++ b/include/libnsgif.h
@@ -113,8 +113,6 @@ typedef struct gif_animation {
void *frame_image;
/** number of times to loop animation */
int loop_count;
- /** current error type, or 0 for none */
- gif_result current_error;
/* Internal members are listed below */
diff --git a/src/libnsgif.c b/src/libnsgif.c
index f8fa4ef..998f8d7 100644
--- a/src/libnsgif.c
+++ b/src/libnsgif.c
@@ -894,7 +894,6 @@ gif_internal_decode_frame(gif_animation *gif,
/* Ensure this frame is supposed to be decoded */
if (gif->frames[frame].display == false) {
- gif->current_error = GIF_FRAME_NO_DISPLAY;
return GIF_OK;
}