Clean up various used variables

This commit is contained in:
Mystro256 2016-12-30 11:16:00 -05:00
parent 0df6f036d6
commit 0bcf4a5223
6 changed files with 1 additions and 9 deletions

View File

@ -237,8 +237,6 @@ static const BOOST::uint8_t val_tab[6]={0,0xC0,0xE0,0xF0,0xF8,0xFC};
size_t utf8_char_len_from_header( char p_c )
{
BOOST::uint8_t c = (BOOST::uint8_t)p_c;
size_t cnt = 0;
for(;;)
{

View File

@ -87,7 +87,6 @@ void gbPrinterShowData()
void gbPrinterReceiveData()
{
int i = gbPrinterDataCount;
if (gbPrinterPacket[3]) { // compressed
uint8_t* data = &gbPrinterPacket[6];
uint8_t* dest = &gbPrinterData[gbPrinterDataCount];

View File

@ -1917,7 +1917,7 @@ static INSN_REGPARM void thumbBreakpoint(uint32_t opcode)
// SWI #comment
static INSN_REGPARM void thumbDF(uint32_t opcode)
{
uint32_t address = 0;
//uint32_t address = 0;
//clockTicks = codeTicksAccessSeq16(address)*2 + codeTicksAccess16(address)+3;
clockTicks = 3;
busPrefetchCount = 0;

View File

@ -3721,7 +3721,6 @@ void CPULoop(int ticks)
{
int clockTicks;
int timerOverflow = 0;
uint32_t memAddr = 0;
// variable used by the CPU core
cpuTotalTicks = 0;

View File

@ -1656,7 +1656,6 @@ void RFUClient::Recv(void)
//transferring = false;
//return;
}
size_t nr;
sf::Packet packet;
sf::Socket::Status status = lanlink.tcpsocket.receive(packet);
if (status == sf::Socket::Disconnected) {
@ -1781,7 +1780,6 @@ static void StartRFUSocket(uint16_t value)
return;
}
static bool logstartd;
uint32_t CurCOM = 0, CurDAT = 0;
bool rfulogd = (READ16LE(&ioMem[COMM_SIOCNT]) != value);
@ -2999,7 +2997,6 @@ static void StartRFU(uint16_t value)
linktimeout = 1;
static bool logstartd;
uint32_t CurCOM = 0, CurDAT = 0;
bool rfulogd = (READ16LE(&ioMem[COMM_SIOCNT]) != value);

View File

@ -3346,7 +3346,6 @@ void dbgExecute(char* toRun)
//although it mights seem wierd, the old step is the last one to be executed.
for (int j = 0;; j++) {
bool notFound = false;
if (debuggerCommands[j].name == NULL) {
{
sprintf(monbuf, "Unrecognized command %s. Type h for help.\n", commands[0]);