1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 20:25:47 +00:00

Remove another useless enum

This commit is contained in:
twinaphex 2016-05-08 04:38:01 +02:00
parent ccb13cdd82
commit fadf87e022
2 changed files with 2 additions and 12 deletions

View File

@ -1722,7 +1722,8 @@ bool content_ctl(enum content_ctl_state state, void *data)
case CONTENT_CTL_IS_INITED:
return content_is_inited;
case CONTENT_CTL_DEINIT:
content_ctl(CONTENT_CTL_TEMPORARY_FREE, NULL);
content_file_free(temporary_content);
temporary_content = NULL;
content_crc = 0;
content_is_inited = false;
core_does_not_need_content = false;
@ -1739,10 +1740,6 @@ bool content_ctl(enum content_ctl_state state, void *data)
}
content_ctl(CONTENT_CTL_DEINIT, NULL);
return false;
case CONTENT_CTL_TEMPORARY_FREE:
content_file_free(temporary_content);
temporary_content = NULL;
break;
case CONTENT_CTL_STREAM_CRC_CALCULATE:
{
content_stream_t *stream = NULL;

View File

@ -48,15 +48,8 @@ enum content_ctl_state
CONTENT_CTL_DEINIT,
CONTENT_CTL_GET_CRC,
/* Frees temporary content handle. */
CONTENT_CTL_TEMPORARY_FREE,
CONTENT_CTL_STREAM_CRC_CALCULATE
};