Skip to content

Commit

Permalink
fixed unused variables warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nnarain committed Aug 22, 2017
1 parent eff144f commit 914c9a7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/core/apu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ namespace gb
{
uint8_t value = 0;

auto extras = extra_bits_[addr - APU_REG_BASE];
const auto extras = extra_bits_[addr - APU_REG_BASE];

if (addr == memorymap::NR52_REGISTER)
{
Expand Down Expand Up @@ -251,7 +251,7 @@ namespace gb
}
}

return value;
return value | extras;
}

void write(uint8_t value, uint16_t addr)
Expand Down
1 change: 0 additions & 1 deletion src/core/cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2023,7 +2023,6 @@ namespace gb

void printDisassembly(uint8_t opcode, uint16_t userdata_addr, OpcodePage page)
{
const int spaces_before_registers = 13;
char str[32];

OpcodeInfo opcodeinfo = getOpcodeInfo(opcode, page);
Expand Down
3 changes: 0 additions & 3 deletions src/core/tilemap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ namespace gb
{
// make std::array?
std::vector<uint8_t> tiles;
auto idx = 0;

forEachBackgroundTile([&](uint8_t tile){
tiles.push_back(tile);
Expand Down Expand Up @@ -238,8 +237,6 @@ namespace gb

const auto start_tile_col = scx / tile_width;

std::size_t seed = 0;

for (auto line = 0; line < 144; line += 8)
{
const auto tile_row = ((scy + line) / tile_height);
Expand Down

0 comments on commit 914c9a7

Please sign in to comment.