зеркало из https://github.com/mozilla/pjs.git
first part of 209545, get rid of unused imap proxy event, r/sr=sspitzer
This commit is contained in:
Родитель
5df2312334
Коммит
59d28d2c64
|
@ -61,7 +61,6 @@ public:
|
|||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IIMAPMISCELLANEOUSSINK_IID)
|
||||
|
||||
NS_IMETHOD HeaderFetchCompleted(nsIImapProtocol* aProtocol) = 0;
|
||||
NS_IMETHOD UpdateSecurityStatus(nsIImapProtocol* aProtocol) = 0;
|
||||
// ****
|
||||
NS_IMETHOD SetBiffStateAndUpdate(nsIImapProtocol* aProtocol, nsMsgBiffState biffState) = 0;
|
||||
NS_IMETHOD ProgressStatus(nsIImapProtocol* aProtocol, PRUint32 aMsgId, const PRUnichar *extraInfo) = 0;
|
||||
|
|
|
@ -4902,12 +4902,6 @@ nsImapMailFolder::HeaderFetchCompleted(nsIImapProtocol* aProtocol)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsImapMailFolder::UpdateSecurityStatus(nsIImapProtocol* aProtocol)
|
||||
{
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsImapMailFolder::SetBiffStateAndUpdate(nsIImapProtocol* aProtocol,
|
||||
nsMsgBiffState biffState)
|
||||
|
|
|
@ -323,7 +323,6 @@ public:
|
|||
NS_IMETHOD AddSearchResult(nsIImapProtocol* aProtocol,
|
||||
const char* searchHitLine);
|
||||
NS_IMETHOD HeaderFetchCompleted(nsIImapProtocol* aProtocol);
|
||||
NS_IMETHOD UpdateSecurityStatus(nsIImapProtocol* aProtocol);
|
||||
// ****
|
||||
NS_IMETHOD SetBiffStateAndUpdate(nsIImapProtocol* aProtocol,
|
||||
nsMsgBiffState biffState);
|
||||
|
|
|
@ -307,27 +307,6 @@ nsImapMiscellaneousSinkProxy::HeaderFetchCompleted(nsIImapProtocol* aProtocol)
|
|||
return res;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsImapMiscellaneousSinkProxy::UpdateSecurityStatus(nsIImapProtocol* aProtocol)
|
||||
{
|
||||
nsresult res = NS_OK;
|
||||
NS_ASSERTION (m_protocol == aProtocol, "Ooh ooh, wrong protocol");
|
||||
|
||||
if (PR_GetCurrentThread() == m_thread)
|
||||
{
|
||||
UpdateSecurityStatusProxyEvent *ev =
|
||||
new UpdateSecurityStatusProxyEvent(this);
|
||||
if(nsnull == ev)
|
||||
res = NS_ERROR_OUT_OF_MEMORY;
|
||||
else
|
||||
ev->PostEvent(m_eventQueue);
|
||||
}
|
||||
else
|
||||
{
|
||||
res = m_realImapMiscellaneousSink->UpdateSecurityStatus(aProtocol);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsImapMiscellaneousSinkProxy::SetBiffStateAndUpdate(nsIImapProtocol* aProtocol,
|
||||
|
@ -566,26 +545,6 @@ HeaderFetchCompletedProxyEvent::HandleEvent()
|
|||
return res;
|
||||
}
|
||||
|
||||
UpdateSecurityStatusProxyEvent::UpdateSecurityStatusProxyEvent(
|
||||
nsImapMiscellaneousSinkProxy* aProxy) :
|
||||
nsImapMiscellaneousSinkProxyEvent(aProxy)
|
||||
{
|
||||
}
|
||||
|
||||
UpdateSecurityStatusProxyEvent::~UpdateSecurityStatusProxyEvent()
|
||||
{
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
UpdateSecurityStatusProxyEvent::HandleEvent()
|
||||
{
|
||||
nsresult res = m_proxy->m_realImapMiscellaneousSink->UpdateSecurityStatus(
|
||||
m_proxy->m_protocol);
|
||||
if (m_notifyCompletion)
|
||||
m_proxy->m_protocol->NotifyFEEventCompletion();
|
||||
return res;
|
||||
}
|
||||
|
||||
SetBiffStateAndUpdateProxyEvent::SetBiffStateAndUpdateProxyEvent(
|
||||
nsImapMiscellaneousSinkProxy* aProxy, nsMsgBiffState biffState) :
|
||||
nsImapMiscellaneousSinkProxyEvent(aProxy)
|
||||
|
|
|
@ -108,7 +108,6 @@ public:
|
|||
NS_DECL_ISUPPORTS
|
||||
|
||||
NS_IMETHOD HeaderFetchCompleted(nsIImapProtocol* aProtocol);
|
||||
NS_IMETHOD UpdateSecurityStatus(nsIImapProtocol* aProtocol);
|
||||
// ****
|
||||
NS_IMETHOD SetBiffStateAndUpdate(nsIImapProtocol* aProtocol,
|
||||
nsMsgBiffState biffState);
|
||||
|
@ -198,13 +197,6 @@ struct HeaderFetchCompletedProxyEvent : public nsImapMiscellaneousSinkProxyEvent
|
|||
NS_IMETHOD HandleEvent();
|
||||
};
|
||||
|
||||
struct UpdateSecurityStatusProxyEvent : public nsImapMiscellaneousSinkProxyEvent
|
||||
{
|
||||
UpdateSecurityStatusProxyEvent(nsImapMiscellaneousSinkProxy* aProxy);
|
||||
virtual ~UpdateSecurityStatusProxyEvent();
|
||||
NS_IMETHOD HandleEvent();
|
||||
};
|
||||
|
||||
struct SetBiffStateAndUpdateProxyEvent : public nsImapMiscellaneousSinkProxyEvent
|
||||
{
|
||||
SetBiffStateAndUpdateProxyEvent(nsImapMiscellaneousSinkProxy* aProxy,
|
||||
|
|
Загрузка…
Ссылка в новой задаче