Remove unused NACT_Sys[12]::cali2()

This commit is contained in:
kichikuou
2024-12-18 13:51:26 +09:00
parent f356d268df
commit b000fecf92
3 changed files with 4 additions and 40 deletions
-18
View File
@@ -1266,21 +1266,3 @@ uint16 NACT_Sys2::cali()
}
return (uint16)(cali[1] & 0xffff);
}
uint16 NACT_Sys2::cali2()
{
uint16 val = 0;
uint16 dat = sco.getd();
if(0x80 <= dat && dat <= 0xbf) {
val = dat & 0x3f;
} else if(0xc0 <= dat && dat <= 0xff) {
val = ((dat & 0x3f) << 8) | sco.getd();
} else {
sys_error("cali2: invalid expression at %d:%04x", sco.page(), sco.cmd_addr());
}
if (sco.getd() != 0x7f) {
sys_error("cali2: invalid expression at %d:%04x", sco.page(), sco.cmd_addr());
}
return val;
}