mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-22 09:30:15 +00:00
CardManager: small refactor
This commit is contained in:
parent
0d741d0b9f
commit
65b8f5fdbf
@ -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();
|
||||
|
@ -53,7 +53,7 @@ public:
|
||||
|
||||
private:
|
||||
void RemoveInternal(UINT slot);
|
||||
void RemoveAuxInternal();
|
||||
void RemoveAuxInternal(void);
|
||||
|
||||
Card* m_slot[NUM_SLOTS];
|
||||
Card* m_aux;
|
||||
|
Loading…
Reference in New Issue
Block a user