mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 00:35:23 +00:00
Remove dead code from commit 024ad3276b472e0fc58b681d10566917e4d8d44d.
This commit is contained in:
parent
ec457a09c3
commit
fea1ac2c0f
@ -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:
|
||||
|
@ -107,12 +107,12 @@ namespace ESM
|
||||
Position mPos;
|
||||
|
||||
/// Calls loadId and loadData
|
||||
void load (ESMReader& esm, bool &isDeleted, int *tempRefCount, bool wideRefNum = false);
|
||||
void load (ESMReader& esm, bool &isDeleted, bool wideRefNum = false);
|
||||
|
||||
void loadId (ESMReader& esm, bool wideRefNum = false);
|
||||
|
||||
/// Implicitly called by load
|
||||
void loadData (ESMReader& esm, bool &isDeleted, int *tempRefCount = nullptr);
|
||||
void loadData (ESMReader& esm, bool &isDeleted);
|
||||
|
||||
void save (ESMWriter &esm, bool wideRefNum = false, bool inInventory = false, bool isDeleted = false) const;
|
||||
|
||||
|
@ -224,7 +224,7 @@ namespace ESM
|
||||
return region + ' ' + cellGrid;
|
||||
}
|
||||
|
||||
bool Cell::getNextRef(ESMReader &esm, CellRef &ref, bool &isDeleted, int *tempRefCount, bool ignoreMoves, MovedCellRef *mref)
|
||||
bool Cell::getNextRef(ESMReader &esm, CellRef &ref, bool &isDeleted, bool ignoreMoves, MovedCellRef *mref)
|
||||
{
|
||||
isDeleted = false;
|
||||
|
||||
@ -252,7 +252,7 @@ namespace ESM
|
||||
|
||||
if (esm.peekNextSub("FRMR"))
|
||||
{
|
||||
ref.load (esm, isDeleted, tempRefCount);
|
||||
ref.load (esm, isDeleted);
|
||||
|
||||
// TODO: should count the number of temp refs and validate the number
|
||||
|
||||
|
@ -184,8 +184,7 @@ struct Cell
|
||||
/// \param ignoreMoves ignore MVRF record and read reference like a regular CellRef.
|
||||
static bool getNextRef(ESMReader &esm,
|
||||
CellRef &ref,
|
||||
bool &isDeleted,
|
||||
int *tempRefCount = nullptr,
|
||||
bool &isDeleted,
|
||||
bool ignoreMoves = false,
|
||||
MovedCellRef *mref = nullptr);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user