From ccb13cdd82e1d6e30e649fd85ff153e1d20223e2 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 8 May 2016 04:36:16 +0200 Subject: [PATCH] remove unnecessary enum --- content.c | 11 ++++------- content.h | 2 -- 2 files changed, 4 insertions(+), 9 deletions(-) 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 };