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);
temporary_content = NULL;
break;
case CONTENT_CTL_STREAM_INIT:
case CONTENT_CTL_STREAM_CRC_CALCULATE:
{
content_stream_t *stream = NULL;
#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);
stream = (content_stream_t*)data;
#ifdef HAVE_ZLIB

View File

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