rv = m_accounts->RemoveElement(aAccount); #ifdef DEBUG_alecf if (NS_FAILED(rv)) printf("error removing account. perhaps we need a NS_STATIC_CAST?\n"); #endif
rv = removeKeyedAccount(key); if (NS_FAILED(rv)) return rv;
nsMsgAccountManager::RemoveAccount(nsIMsgAccount *aAccount){  nsresult rv;  rv = LoadAccounts();  if (NS_FAILED(rv)) return rv;    rv = m_accounts->RemoveElement(aAccount);#ifdef DEBUG_alecf  if (NS_FAILED(rv))    printf("error removing account. perhaps we need a NS_STATIC_CAST?\n");#endif  return NS_OK;}