Replace many '; unused' with '; unreferenced'

This commit is contained in:
Rangi
2020-10-28 10:21:10 -04:00
parent 446f1846b1
commit 6d333bed5f
31 changed files with 70 additions and 57 deletions

View File

@@ -2163,7 +2163,8 @@ GetMapEnvironment::
pop hl
ret
ret ; unused
Map_DummyFunction:: ; unreferenced
ret
GetAnyMapEnvironment::
push hl

View File

@@ -330,7 +330,7 @@ MenuTextbox::
pop hl
jp PrintText
; unused
Menu_DummyFunction:: ; unreferenced
ret
LoadMenuTextbox::

View File

@@ -141,12 +141,15 @@ RadioTerminator::
PrintText::
call SetUpTextbox
; fallthrough
BuenaPrintText::
push hl
hlcoord TEXTBOX_INNERX, TEXTBOX_INNERY
lb bc, TEXTBOX_INNERH - 1, TEXTBOX_INNERW
call ClearBox
pop hl
; fallthrough
PrintTextboxText::
bccoord TEXTBOX_INNERX, TEXTBOX_INNERY
@@ -163,6 +166,7 @@ SetUpTextbox::
PlaceString::
push hl
; fallthrough
PlaceNextChar::
ld a, [de]
@@ -173,7 +177,9 @@ PlaceNextChar::
pop hl
ret
pop de ; unused
DummyChar:: ; unreferenced
pop de
; fallthrough
NextChar::
inc de
@@ -319,12 +325,13 @@ PlaceKokoWa: print_name PlaceKokoWaText
PlaceMoveTargetsName::
ldh a, [hBattleTurn]
xor 1
jr PlaceMoveUsersName.place
jr PlaceBattlersName
PlaceMoveUsersName::
ldh a, [hBattleTurn]
; fallthrough
.place:
PlaceBattlersName:
push de
and a
jr nz, .enemy

View File

@@ -60,7 +60,7 @@ CGBOnly_CopyTilemapAtOnce::
CopyTilemapAtOnce::
jr _CopyTilemapAtOnce
; unused
CopyAttrmapAndTilemapToWRAMBank3: ; unreferenced
farcall HDMATransferAttrmapAndTilemapToWRAMBank3
ret

View File

@@ -92,6 +92,6 @@ SafeUpdateSprites::
ldh [hOAMUpdate], a
ret
; unused
SetCarryFlag:: ; unreferenced
scf
ret