From f778678e3dd4fa527734c56875c2f081e59370ff Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Sun, 23 Nov 2008 16:04:49 +0000 Subject: [PATCH] Removed unused global tokens. --- src/emu/cpu/h83002/h8_16.c | 9 --------- src/emu/cpu/h83002/h8_8.c | 5 ----- src/emu/cpu/m37710/m37710.c | 15 --------------- 3 files changed, 29 deletions(-) diff --git a/src/emu/cpu/h83002/h8_16.c b/src/emu/cpu/h83002/h8_16.c index 9892ab06f20..82179f5876a 100644 --- a/src/emu/cpu/h83002/h8_16.c +++ b/src/emu/cpu/h83002/h8_16.c @@ -46,7 +46,6 @@ INLINE void h8_mem_write32(h83xx_state *h8, offs_t address, UINT32 data) memory_write_word_16be(h8->program, address + 2, data); } -static void *token; static void h8_check_irqs(h83xx_state *h8); /* implementation */ @@ -207,8 +206,6 @@ static CPU_INIT(h8) { h83xx_state *h8 = device->token; - token = device->token; - h8->h8iflag = 1; h8->irq_cb = irqcallback; h8->device = device; @@ -240,8 +237,6 @@ static CPU_INIT(h8_3007) { h83xx_state *h8 = device->token; - token = device->token; - CPU_INIT_CALL(h8); h8_3007_itu_init(h8); } @@ -371,10 +366,6 @@ static CPU_GET_CONTEXT( h8 ) static CPU_SET_CONTEXT( h8 ) { - if (src) - { - token = src; - } } static CPU_SET_INFO( h8 ) diff --git a/src/emu/cpu/h83002/h8_8.c b/src/emu/cpu/h83002/h8_8.c index 35d46e38027..aa3345f637b 100644 --- a/src/emu/cpu/h83002/h8_8.c +++ b/src/emu/cpu/h83002/h8_8.c @@ -62,7 +62,6 @@ INLINE void h8_mem_write32(h83xx_state *h8, offs_t address, UINT32 data) memory_write_byte(h8->program, address+3, data); } -static void *token; static void h8_check_irqs(h83xx_state *h8); /* implementation */ @@ -358,10 +357,6 @@ static CPU_GET_CONTEXT( h8 ) static CPU_SET_CONTEXT( h8 ) { - if (src) - { - token = src; - } } static CPU_SET_INFO( h8 ) diff --git a/src/emu/cpu/m37710/m37710.c b/src/emu/cpu/m37710/m37710.c index b01edbfb705..ac1b135387a 100644 --- a/src/emu/cpu/m37710/m37710.c +++ b/src/emu/cpu/m37710/m37710.c @@ -58,7 +58,6 @@ #define M37710_DEBUG (0) // enables verbose logging for peripherals, etc. static void m37710_set_irq_line(m37710i_cpu_struct *m37710i_cpu, int line, int state); -void *token; /* interrupt control mapping */ @@ -876,20 +875,8 @@ static CPU_GET_CONTEXT( m37710 ) /* Set the current CPU context */ static CPU_SET_CONTEXT( m37710 ) { - if (src) - { - token = src; - } } -/* Get the current Program Counter */ -#ifdef UNUSED_FUNCTION -unsigned m37710_get_pc(void) -{ - return REG_PC; -} -#endif - /* Set the Program Counter */ static void m37710_set_pc(m37710i_cpu_struct *m37710i_cpu, unsigned val) { @@ -970,8 +957,6 @@ static CPU_INIT( m37710 ) { m37710i_cpu_struct *m37710i_cpu = device->token; - token = device->token; - memset(m37710i_cpu, 0, sizeof(m37710i_cpu)); INT_ACK = irqcallback;