diff --git a/content.c b/content.c index 32fdaa1a6f..994f907587 100644 --- a/content.c +++ b/content.c @@ -1743,16 +1743,13 @@ bool content_ctl(enum content_ctl_state state, void *data) content_file_free(temporary_content); temporary_content = NULL; break; - case CONTENT_CTL_STREAM_INIT: -#ifdef HAVE_ZLIB - if (!stream_backend) - stream_backend = file_archive_get_default_file_backend(); -#endif - break; case CONTENT_CTL_STREAM_CRC_CALCULATE: { content_stream_t *stream = NULL; - content_ctl(CONTENT_CTL_STREAM_INIT, NULL); +#ifdef HAVE_ZLIB + if (!stream_backend) + stream_backend = file_archive_get_default_file_backend(); +#endif stream = (content_stream_t*)data; #ifdef HAVE_ZLIB diff --git a/content.h b/content.h index 836fdbb3d7..7523da1565 100644 --- a/content.h +++ b/content.h @@ -57,8 +57,6 @@ enum content_ctl_state /* Frees temporary content handle. */ CONTENT_CTL_TEMPORARY_FREE, - CONTENT_CTL_STREAM_INIT, - CONTENT_CTL_STREAM_CRC_CALCULATE };