mirror of
https://github.com/libretro/libretro-fceumm.git
synced 2025-02-11 03:16:13 +00:00
Remove unused variables/functions
This commit is contained in:
parent
025b8f8bcb
commit
a821de094d
@ -21,9 +21,6 @@
|
||||
|
||||
#include "mapinc.h"
|
||||
|
||||
static uint8 *CHRRAM;
|
||||
static uint32 CHRRAMSIZE;
|
||||
|
||||
static uint16 cmdreg;
|
||||
static uint8 unrom, reg, openbus;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
@ -1321,7 +1321,6 @@ static bool update_option_visibility(void)
|
||||
{
|
||||
struct retro_variable var = {0};
|
||||
bool updated = false;
|
||||
size_t i, size;
|
||||
|
||||
/* If frontend supports core option categories,
|
||||
* then fceumm_show_adv_system_options and
|
||||
@ -1415,7 +1414,7 @@ static bool update_option_visibility(void)
|
||||
static void set_variables(void)
|
||||
{
|
||||
struct retro_core_option_display option_display;
|
||||
unsigned i = 0, index = 0;
|
||||
unsigned index = 0;
|
||||
|
||||
option_display.visible = false;
|
||||
|
||||
@ -2696,8 +2695,8 @@ static void retro_run_blit(uint8_t *gfx)
|
||||
void retro_run(void)
|
||||
{
|
||||
uint8_t *gfx;
|
||||
int32_t i, ssize = 0;
|
||||
bool updated = false;
|
||||
int32_t ssize = 0;
|
||||
bool updated = false;
|
||||
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated)
|
||||
check_variables(false);
|
||||
|
@ -691,9 +691,7 @@ static void RDoSQLQ(void) {
|
||||
|
||||
static void RDoTriangle(void) {
|
||||
int32 V;
|
||||
int32 tcout, cout;
|
||||
|
||||
tcout = (tristep & 0xF);
|
||||
int32 tcout = (tristep & 0xF);
|
||||
if (!(tristep & 0x10)) tcout ^= 0xF;
|
||||
tcout = (tcout * 3) << 16; /* (tcout<<1); */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user