Remove check for impossible conditions

#2354
SUBE is never < 0 with the latest change (blank saves behave same as
retail saves).
This commit is contained in:
Kurt 2019-07-08 10:03:53 -07:00
parent e29da1a8e8
commit cf0908a21e
2 changed files with 0 additions and 12 deletions

View file

@ -296,9 +296,6 @@ namespace PKHeX.Core
{
get
{
if (SUBE < 0 || ORASDEMO)
return Array.Empty<ushort[]>(); // no gym data
const int teamsize = 2 * 6; // 2byte/species, 6species/team
const int size = teamsize * 8; // 8 gyms
int ofs = SUBE - size - 4;
@ -311,9 +308,6 @@ namespace PKHeX.Core
}
set
{
if (SUBE < 0 || ORASDEMO)
return; // no gym data
const int teamsize = 2 * 6; // 2byte/species, 6species/team
const int size = teamsize * 8; // 8 gyms
int ofs = SUBE - size - 4;

View file

@ -206,9 +206,6 @@ namespace PKHeX.Core
{
get
{
if (SUBE < 0)
return Array.Empty<ushort[]>(); // no gym data
const int teamsize = 2 * 6; // 2byte/species, 6species/team
const int size = teamsize * 8; // 8 gyms
int ofs = SUBE - size - 4;
@ -221,9 +218,6 @@ namespace PKHeX.Core
}
set
{
if (SUBE < 0)
return; // no gym data
const int teamsize = 2 * 6; // 2byte/species, 6species/team
const int size = teamsize * 8; // 8 gyms
int ofs = SUBE - size - 4;