remove dead code

This commit is contained in:
Matthew Berry 2022-09-02 17:59:03 -07:00
parent cd97745c09
commit e5cbf18eaf

View file

@ -42,7 +42,6 @@ module GBA
end end
def [](io_addr : Int) : UInt8 def [](io_addr : Int) : UInt8
return 0_u8 if io_addr >= 0xE0 # todo: OOB read
channel = (io_addr - 0xB0) // 12 channel = (io_addr - 0xB0) // 12
reg = (io_addr - 0xB0) % 12 reg = (io_addr - 0xB0) % 12
case reg case reg
@ -56,7 +55,6 @@ module GBA
end end
def []=(io_addr : Int, value : UInt8) : Nil def []=(io_addr : Int, value : UInt8) : Nil
return if io_addr >= 0xE0 # todo: OOB write
channel = (io_addr - 0xB0) // 12 channel = (io_addr - 0xB0) // 12
reg = (io_addr - 0xB0) % 12 reg = (io_addr - 0xB0) % 12
case reg case reg