From fadf87e0225fb8fe82715a9785b41701b5158c90 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 8 May 2016 04:38:01 +0200 Subject: [PATCH] Remove another useless enum --- content.c | 7 ++----- content.h | 7 ------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/content.c b/content.c index 994f907587..b90f2bde66 100644 --- a/content.c +++ b/content.c @@ -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; diff --git a/content.h b/content.h index 7523da1565..d31fe7e8cd 100644 --- a/content.h +++ b/content.h @@ -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 };