Remove unused variables/functions

This commit is contained in:
LibretroAdmin
2022-09-05 01:27:12 +02:00
parent 025b8f8bcb
commit a821de094d
7 changed files with 4 additions and 28 deletions

View File

@@ -21,9 +21,6 @@
#include "mapinc.h"
static uint8 *CHRRAM;
static uint32 CHRRAMSIZE;
static uint16 cmdreg;
static uint8 unrom, reg, openbus;

View File

@@ -44,11 +44,6 @@ static void M364Power(void) {
SetWriteHandler(0x7000, 0x7FFF, M364Write);
}
static void M364Reset(void) {
EXPREGS[0] = 0;
MMC3RegReset();
}
void Mapper364_Init(CartInfo *info) {
GenMMC3_Init(info, 512, 512, 8, 0);
pwrap = M364PW;

View File

@@ -73,10 +73,6 @@ static void Sync(void) {
setprg8r(0x10, 0x6000, 0);
}
static DECLFR(M375Read) {
return CartBR(A);
}
static DECLFW(M375Write) {
if (addrlatch & 0x800)
datalatch = V;

View File

@@ -48,13 +48,6 @@ static DECLFW(HP898FWrite) {
}
}
static DECLFW(HP898FWriteEx) {
switch (A & 4) {
case 0: regs[0] = V; break; /* CHR */
case 4: regs[1] = (V & 0xC0) | ((V >> 2) & 6) | ((V & 0x20) ? 1 : 0); break; /* PRG */
}
Sync();
}
static void HP898FPower(void) {
regs[0] = regs[1] = 0;
Sync();

View File

@@ -689,8 +689,6 @@ void Mapper421_Init(CartInfo *info)
static uint8 HSK007Reg[4];
void sync394 (void) /* Called when J.Y. ASIC is active */
{
int prgAND =HSK007Reg[3] &0x10? 0x1F: 0x0F;
int chrAND =HSK007Reg[3] &0x80? 0xFF: 0x7F;
int prgOR =HSK007Reg[3] <<1 &0x010 | HSK007Reg[1] <<5 &0x020;
int chrOR =HSK007Reg[3] <<1 &0x080 | HSK007Reg[1] <<8 &0x100;
syncPRG(0x1F, prgOR);