From 86b365f065b65e8796075b8fd7fbb5a2097cf38d Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Sat, 21 Aug 2021 16:59:07 +0200 Subject: [PATCH] Remove unused variable --- gba_memory.c | 1 - main.c | 1 - main.h | 1 - 3 files changed, 3 deletions(-) diff --git a/gba_memory.c b/gba_memory.c index 9a556fe..c534230 100644 --- a/gba_memory.c +++ b/gba_memory.c @@ -266,7 +266,6 @@ static void trigger_timer(u32 timer_number, u32 value) if(timer[timer_number].status != TIMER_INACTIVE) { timer[timer_number].status = TIMER_INACTIVE; - timer[timer_number].stop_cpu_ticks = cpu_ticks; } } write_ioreg(REG_TM0CNT + (timer_number * 2), value); diff --git a/main.c b/main.c index b6a782c..22baf58 100644 --- a/main.c +++ b/main.c @@ -94,7 +94,6 @@ void init_main(void) dma[i].direct_sound_channel = DMA_NO_DIRECT_SOUND; timer[i].status = TIMER_INACTIVE; timer[i].reload = 0x10000; - timer[i].stop_cpu_ticks = 0; } timer[0].direct_sound_channels = TIMER_DS_CHANNEL_BOTH; diff --git a/main.h b/main.h index 35bc525..111b4d6 100644 --- a/main.h +++ b/main.h @@ -49,7 +49,6 @@ typedef struct s32 count; u32 reload; u32 prescale; - u32 stop_cpu_ticks; fixed8_24 frequency_step; timer_ds_channel_type direct_sound_channels; timer_irq_type irq;