FS#9638 - temp_cue is unused and wasting memory.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19890 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2009-01-31 19:41:29 +00:00
parent 31c8eee99d
commit 91948d12aa
6 changed files with 7 additions and 38 deletions

View file

@ -45,7 +45,6 @@
#define CUE_DIR ROCKBOX_DIR "/cue"
struct cuesheet *curr_cue;
struct cuesheet *temp_cue;
#if CONFIG_CODEC != SWCODEC
/* special trickery because the hwcodec playback engine is in firmware/ */
@ -59,13 +58,11 @@ void cuesheet_init(void)
{
if (global_settings.cuesheet) {
curr_cue = (struct cuesheet *)buffer_alloc(sizeof(struct cuesheet));
temp_cue = (struct cuesheet *)buffer_alloc(sizeof(struct cuesheet));
#if CONFIG_CODEC != SWCODEC
audio_set_cuesheet_callback(cuesheet_handler);
#endif
} else {
curr_cue = NULL;
temp_cue = NULL;
}
}