source: Remove obsolete fields

This commit is contained in:
Harry Jeffery 2019-01-20 22:17:51 +00:00
parent 090a0ceb7c
commit c987d66cef
2 changed files with 0 additions and 9 deletions

View file

@ -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;

View file

@ -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);