first part of 209545, get rid of unused imap proxy event, r/sr=sspitzer

This commit is contained in:
bienvenu%netscape.com 2003-06-16 14:37:43 +00:00
parent fccde7c7eb
commit d4c29471d3
5 changed files with 0 additions and 57 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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);

View File

@ -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)

View File

@ -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,