Remove unused variables, ifdef what looks debug code.

This commit is contained in:
riccardom 2009-08-08 10:50:38 +00:00
parent c0ebfc43f0
commit aa32f62368
3 changed files with 3 additions and 4 deletions

View File

@ -235,8 +235,6 @@ void GFX_FIFOsend(u8 cmd, u32 param)
// this function used ONLY in new gxFIFO
BOOL GFX_PIPErecv(u8 *cmd, u32 *param)
{
u8 tmp_cmd = 0;
u32 tmp_param = 0;
u32 gxstat = T1ReadLong(MMU.MMU_MEM[ARMCPU_ARM9][0x40], 0x600);
gxstat &= 0xF7FFFFFF; // clear busy flag

View File

@ -1552,8 +1552,10 @@ static INLINE u16 read_timer(int proc, int timerIndex)
static INLINE void write_timer(int proc, int timerIndex, u16 val)
{
#if 0
int mask = ((val&0x80)>>7) << timerIndex;
//MMU.CheckTimers = (MMU.CheckTimers & (~mask)) | mask;
MMU.CheckTimers = (MMU.CheckTimers & (~mask)) | mask;
#endif
if(val&0x80)
MMU.timer[proc][timerIndex] = MMU.timerReload[proc][timerIndex];

View File

@ -499,7 +499,6 @@ static bool FCEUSS_SaveSRAM(std::ostream* outstream, std:: string fname)
//TODO - support dumping directly without compressing to save a buffer copy
memorystream ms;
std::ostream* os = (std::ostream*)&ms;
//size it
FILE * fp = fopen( fname.c_str(), "r" );