1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-21 09:39:56 +00:00

More dead code removal.

This commit is contained in:
cc9cii 2021-07-06 14:45:45 +10:00
parent fea1ac2c0f
commit ae4ddd810f

View File

@ -19,9 +19,8 @@ void CSMWorld::RefCollection::load (ESM::ESMReader& reader, int cellIndex, bool
ESM::MovedCellRef mref;
mref.mRefNum.mIndex = 0;
bool isDeleted = false;
int tempRefCount = cell.get().mRefNumCounter; // if initially non-zero, all refs in cell are temp
while (ESM::Cell::getNextRef(reader, ref, isDeleted, &tempRefCount, true, &mref))
while (ESM::Cell::getNextRef(reader, ref, isDeleted, true, &mref))
{
// Keep mOriginalCell empty when in modified (as an indicator that the
// original cell will always be equal the current cell).
@ -60,8 +59,6 @@ void CSMWorld::RefCollection::load (ESM::ESMReader& reader, int cellIndex, bool
else
ref.mCell = cell2.mId;
// TODO: update cell.get().mRefNumCounter with tempRefCount?
mref.mRefNum.mIndex = 0;
// ignore content file number