mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 15:17:50 +00:00
CardManager: small refactor
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user