Remove dead code from commit 024ad3276b.

This commit is contained in:
cc9cii 2021-07-06 14:21:17 +10:00
parent ec457a09c3
commit fea1ac2c0f
4 changed files with 9 additions and 17 deletions

View file

@ -31,10 +31,10 @@ void ESM::RefNum::save (ESMWriter &esm, bool wide, const std::string& tag) const
}
void ESM::CellRef::load (ESMReader& esm, bool &isDeleted, int *tempRefCount, bool wideRefNum)
void ESM::CellRef::load (ESMReader& esm, bool &isDeleted, bool wideRefNum)
{
loadId(esm, wideRefNum);
loadData(esm, isDeleted, tempRefCount);
loadData(esm, isDeleted);
}
void ESM::CellRef::loadId (ESMReader& esm, bool wideRefNum)
@ -57,7 +57,7 @@ void ESM::CellRef::loadId (ESMReader& esm, bool wideRefNum)
}
}
void ESM::CellRef::loadData(ESMReader &esm, bool &isDeleted, int *tempRefCount)
void ESM::CellRef::loadData(ESMReader &esm, bool &isDeleted)
{
isDeleted = false;
@ -119,14 +119,7 @@ void ESM::CellRef::loadData(ESMReader &esm, bool &isDeleted, int *tempRefCount)
break;
case ESM::FourCC<'N','A','M','0'>::value:
{
if (tempRefCount && *tempRefCount == -1)
{
esm.getHT(*tempRefCount);
// TODO: check that there are no more subs following this sub
}
else
esm.skipHSub();
esm.skipHSub();
break;
}
case ESM::SREC_DELE: