remove unnecessary enum

This commit is contained in:
twinaphex 2016-05-08 04:36:16 +02:00
parent 0bd45c7f51
commit ccb13cdd82
2 changed files with 4 additions and 9 deletions

View File

@ -1743,16 +1743,13 @@ bool content_ctl(enum content_ctl_state state, void *data)
content_file_free(temporary_content); content_file_free(temporary_content);
temporary_content = NULL; temporary_content = NULL;
break; 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: case CONTENT_CTL_STREAM_CRC_CALCULATE:
{ {
content_stream_t *stream = NULL; 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; stream = (content_stream_t*)data;
#ifdef HAVE_ZLIB #ifdef HAVE_ZLIB

View File

@ -57,8 +57,6 @@ enum content_ctl_state
/* Frees temporary content handle. */ /* Frees temporary content handle. */
CONTENT_CTL_TEMPORARY_FREE, CONTENT_CTL_TEMPORARY_FREE,
CONTENT_CTL_STREAM_INIT,
CONTENT_CTL_STREAM_CRC_CALCULATE CONTENT_CTL_STREAM_CRC_CALCULATE
}; };