mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Implement RemoveServer
This commit is contained in:
parent
eed8630e77
commit
a2efda1874
@ -107,6 +107,15 @@ NS_IMETHODIMP nsMsgBiffManager::AddServerBiff(nsIMsgIncomingServer *server)
|
||||
|
||||
NS_IMETHODIMP nsMsgBiffManager::RemoveServerBiff(nsIMsgIncomingServer *server)
|
||||
{
|
||||
PRInt32 pos = FindServer(server);
|
||||
if(pos != -1)
|
||||
{
|
||||
mBiffArray->RemoveElementAt(pos);
|
||||
//Need to release mBiffArray's ref on server.
|
||||
NS_IF_RELEASE(server);
|
||||
}
|
||||
|
||||
//Should probably reset biff time if this was the server that gets biffed next.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user