From 1feb8bd4a11cdfc552799958ad8539090eec2b74 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Mon, 7 May 2007 13:32:56 +0000 Subject: [PATCH] Minor header file cleanup - try and include the minimal number of files, and only where they are needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13344 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs.h | 11 +---------- apps/cuesheet.c | 1 + apps/playback.h | 2 -- apps/tagcache.c | 3 ++- 4 files changed, 4 insertions(+), 13 deletions(-) diff --git a/apps/codecs.h b/apps/codecs.h index 3a3970b83d..3823e72177 100644 --- a/apps/codecs.h +++ b/apps/codecs.h @@ -30,32 +30,23 @@ #endif #include -#include #include -#include #include "config.h" -#include "dir.h" #include "kernel.h" -#include "font.h" #include "system.h" #include "id3.h" -#include "mpeg.h" #include "audio.h" -#include "mp3_playback.h" #ifdef RB_PROFILE #include "profile.h" +#include "thread.h" #endif #if (CONFIG_CODEC == SWCODEC) #if !defined(SIMULATOR) && defined(HAVE_RECORDING) #include "pcm_record.h" #endif #include "dsp.h" -#include "playback.h" #endif #include "settings.h" -#include "thread.h" -#include "playlist.h" -#include "sound.h" #ifdef CODEC diff --git a/apps/cuesheet.c b/apps/cuesheet.c index 970959b5d2..afd0ba1ea6 100644 --- a/apps/cuesheet.c +++ b/apps/cuesheet.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include "system.h" #include "audio.h" diff --git a/apps/playback.h b/apps/playback.h index cf7547ec26..9a8bd10390 100644 --- a/apps/playback.h +++ b/apps/playback.h @@ -20,8 +20,6 @@ #ifndef _PLAYBACK_H #define _PLAYBACK_H -#include -#include #include #include "id3.h" diff --git a/apps/tagcache.c b/apps/tagcache.c index e917d55f47..08e89eb5c6 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -54,6 +54,8 @@ */ #include +#include +#include #include "config.h" #include "thread.h" #include "kernel.h" @@ -78,7 +80,6 @@ #endif #ifdef __PCTOOL__ -#include #define yield() do { } while(0) #define sim_sleep(timeout) do { } while(0) #define do_timed_yield() do { } while(0)