CardManager: small refactor

This commit is contained in:
tomcw 2020-12-09 20:19:49 +00:00
parent 0d741d0b9f
commit 65b8f5fdbf
2 changed files with 7 additions and 7 deletions

View File

@ -120,12 +120,6 @@ void CardManager::RemoveInternal(UINT slot)
m_slot[slot] = NULL;
}
void CardManager::RemoveAuxInternal()
{
delete m_aux;
m_aux = NULL;
}
void CardManager::Remove(UINT slot)
{
RemoveInternal(slot);
@ -159,6 +153,12 @@ void CardManager::InsertAux(SS_CARDTYPE type)
_ASSERT(m_aux != NULL);
}
void CardManager::RemoveAuxInternal()
{
delete m_aux;
m_aux = NULL;
}
void CardManager::RemoveAux(void)
{
RemoveAuxInternal();

View File

@ -53,7 +53,7 @@ public:
private:
void RemoveInternal(UINT slot);
void RemoveAuxInternal();
void RemoveAuxInternal(void);
Card* m_slot[NUM_SLOTS];
Card* m_aux;