aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-01-20 22:17:51 +0000
committerHarry Jeffery <harry@exec64.co.uk>2019-01-29 22:25:05 +0000
commitc987d66cef2205fc1cf4284104bd8bcc6eb092d0 (patch)
treee526c49ed7b2a7117b77ee95eb4675e9dc22d1d7 /src
parent090a0ceb7c2d5135b7286405d8bad5092d8387bb (diff)
downloadimv-c987d66cef2205fc1cf4284104bd8bcc6eb092d0.tar.gz
source: Remove obsolete fields
Diffstat (limited to 'src')
-rw-r--r--src/backend_freeimage.c2
-rw-r--r--src/source.h7
2 files changed, 0 insertions, 9 deletions
diff --git a/src/backend_freeimage.c b/src/backend_freeimage.c
index 596d450..73f8f9a 100644
--- a/src/backend_freeimage.c
+++ b/src/backend_freeimage.c
@@ -244,8 +244,6 @@ static enum backend_result open_path(const char *path, struct imv_source **src)
source->width = 0;
source->height = 0;
source->num_frames = 0;
- source->image_event_id = 0;
- source->error_event_id = 0;
source->load_first_frame = &first_frame;
source->load_next_frame = &next_frame;
source->free = &source_free;
diff --git a/src/source.h b/src/source.h
index 2f6b44d..74501ed 100644
--- a/src/source.h
+++ b/src/source.h
@@ -36,13 +36,6 @@ struct imv_source {
/* Next frame to be loaded, 0-indexed */
int next_frame;
- /* Frames are returned using SDL events. These two fields must be
- * populated by callers before calling any frame loading functionality
- * on the source.
- */
- unsigned int image_event_id;
- unsigned int error_event_id;
-
/* Trigger loading of the first frame. */
void (*load_first_frame)(struct imv_source *src);