Bug 1787679 - Remove some unused members from pop interfaces. r=rnons
Differential Revision: https://phabricator.services.mozilla.com/D155804
This commit is contained in:
Родитель
ced1c9d38f
Коммит
8643b6d0d9
|
@ -19,11 +19,9 @@ interface nsIPop3IncomingServer : nsISupports {
|
|||
attribute unsigned long pop3CapabilityFlags;
|
||||
attribute boolean deleteByAgeFromServer;
|
||||
attribute long numDaysToLeaveOnServer;
|
||||
attribute nsIPop3Protocol runningProtocol;
|
||||
// client adds uidls to mark one by one, then calls markMessages
|
||||
void addUidlToMark(in string aUidl, in int32_t newStatus);
|
||||
void markMessages();
|
||||
attribute boolean authenticated;
|
||||
/* account to which this server defers storage, for global inbox */
|
||||
attribute ACString deferredToAccount;
|
||||
// whether get new mail in deferredToAccount gets
|
||||
|
|
|
@ -12,8 +12,6 @@ interface nsIURI;
|
|||
[scriptable, uuid(ceabfc6b-f139-4c25-890f-efb7c3069d40)]
|
||||
interface nsIPop3Sink : nsISupports {
|
||||
|
||||
attribute boolean userAuthenticated;
|
||||
attribute AUTF8String mailAccountURL;
|
||||
attribute boolean buildMessageUri;
|
||||
attribute AUTF8String messageUri;
|
||||
attribute AUTF8String baseMessageUri;
|
||||
|
@ -26,14 +24,10 @@ interface nsIPop3Sink : nsISupports {
|
|||
void abortMailDelivery(in nsIPop3Protocol protocol);
|
||||
|
||||
void incorporateBegin(in string uidlString, in unsigned long flags);
|
||||
|
||||
void incorporateWrite(in string block, in long length);
|
||||
|
||||
void incorporateComplete(in nsIMsgWindow aMsgWindow, in int32_t aSize);
|
||||
void incorporateAbort(in boolean uidlDownload);
|
||||
|
||||
void biffGetNewMail();
|
||||
|
||||
/**
|
||||
* Tell the pop3sink how many messages we're going to download.
|
||||
*
|
||||
|
@ -43,8 +37,6 @@ interface nsIPop3Sink : nsISupports {
|
|||
|
||||
void setBiffStateAndUpdateFE(in unsigned long biffState, in long numNewMessages, in boolean notify);
|
||||
|
||||
void setSenderAuthedFlag(in boolean authed);
|
||||
|
||||
attribute nsIPop3IncomingServer popServer;
|
||||
attribute nsIMsgFolder folder;
|
||||
};
|
||||
|
|
|
@ -45,7 +45,6 @@ mozilla::LazyLogModule POP3LOGMODULE("POP3");
|
|||
NS_IMPL_ISUPPORTS(nsPop3Sink, nsIPop3Sink)
|
||||
|
||||
nsPop3Sink::nsPop3Sink() {
|
||||
m_authed = false;
|
||||
m_biffState = 0;
|
||||
m_numNewMessages = 0;
|
||||
m_numNewMessagesInFolder = 0;
|
||||
|
@ -62,31 +61,6 @@ nsPop3Sink::~nsPop3Sink() {
|
|||
ReleaseFolderLock();
|
||||
}
|
||||
|
||||
nsresult nsPop3Sink::SetUserAuthenticated(bool authed) {
|
||||
m_authed = authed;
|
||||
m_popServer->SetAuthenticated(authed);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult nsPop3Sink::GetUserAuthenticated(bool* authed) {
|
||||
return m_popServer->GetAuthenticated(authed);
|
||||
}
|
||||
|
||||
nsresult nsPop3Sink::SetSenderAuthedFlag(bool authed) {
|
||||
m_authed = authed;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult nsPop3Sink::SetMailAccountURL(const nsACString& urlString) {
|
||||
m_accountUrl.Assign(urlString);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult nsPop3Sink::GetMailAccountURL(nsACString& urlString) {
|
||||
urlString.Assign(m_accountUrl);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
partialRecord::partialRecord() : m_msgDBHdr(nullptr) {}
|
||||
|
||||
partialRecord::~partialRecord() {}
|
||||
|
@ -673,13 +647,6 @@ nsPop3Sink::IncorporateAbort(bool uidlDownload) {
|
|||
return rv;
|
||||
}
|
||||
|
||||
nsresult nsPop3Sink::BiffGetNewMail() {
|
||||
#ifdef DEBUG
|
||||
printf("Biff get new mail.\n");
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult nsPop3Sink::SetBiffStateAndUpdateFE(uint32_t aBiffState,
|
||||
int32_t numNewMessages,
|
||||
bool notify) {
|
||||
|
|
|
@ -44,8 +44,6 @@ class nsPop3Sink : public nsIPop3Sink {
|
|||
nsresult WriteLineToMailbox(const nsACString& buffer);
|
||||
nsresult ReleaseFolderLock();
|
||||
|
||||
bool m_authed;
|
||||
nsCString m_accountUrl;
|
||||
uint32_t m_biffState;
|
||||
int32_t m_numNewMessages;
|
||||
int32_t m_numNewMessagesInFolder;
|
||||
|
|
|
@ -75,11 +75,7 @@ function checkBusy() {
|
|||
}
|
||||
|
||||
// If the server hasn't quite finished, just delay a little longer.
|
||||
if (
|
||||
incomingServer.serverBusy ||
|
||||
(incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
||||
incomingServer.runningProtocol)
|
||||
) {
|
||||
if (incomingServer.serverBusy) {
|
||||
do_timeout(20, checkBusy);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -117,11 +117,7 @@ function checkBusy() {
|
|||
}
|
||||
|
||||
// If the server hasn't quite finished, just delay a little longer.
|
||||
if (
|
||||
incomingServer.serverBusy ||
|
||||
(incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
||||
incomingServer.runningProtocol)
|
||||
) {
|
||||
if (incomingServer.serverBusy) {
|
||||
do_timeout(20, checkBusy);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -106,11 +106,7 @@ function checkBusy() {
|
|||
}
|
||||
|
||||
// If the server hasn't quite finished, just delay a little longer.
|
||||
if (
|
||||
incomingServer.serverBusy ||
|
||||
(incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
||||
incomingServer.runningProtocol)
|
||||
) {
|
||||
if (incomingServer.serverBusy) {
|
||||
do_timeout(20, checkBusy);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -81,11 +81,7 @@ function checkBusy() {
|
|||
}
|
||||
|
||||
// If the server hasn't quite finished, just delay a little longer.
|
||||
if (
|
||||
incomingServer.serverBusy ||
|
||||
(incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
||||
incomingServer.runningProtocol)
|
||||
) {
|
||||
if (incomingServer.serverBusy) {
|
||||
do_timeout(20, checkBusy);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -76,11 +76,7 @@ function checkBusy() {
|
|||
}
|
||||
|
||||
// If the server hasn't quite finished, just delay a little longer.
|
||||
if (
|
||||
incomingServer.serverBusy ||
|
||||
(incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
||||
incomingServer.runningProtocol)
|
||||
) {
|
||||
if (incomingServer.serverBusy) {
|
||||
do_timeout(20, checkBusy);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -78,11 +78,7 @@ function checkBusy() {
|
|||
}
|
||||
|
||||
// If the server hasn't quite finished, just delay a little longer.
|
||||
if (
|
||||
incomingServer.serverBusy ||
|
||||
(incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
||||
incomingServer.runningProtocol)
|
||||
) {
|
||||
if (incomingServer.serverBusy) {
|
||||
do_timeout(20, checkBusy);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -42,11 +42,7 @@ var urlListener = {
|
|||
|
||||
function checkBusy() {
|
||||
// If the server hasn't quite finished, just delay a little longer.
|
||||
if (
|
||||
incomingServer.serverBusy ||
|
||||
(incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
||||
incomingServer.runningProtocol)
|
||||
) {
|
||||
if (incomingServer.serverBusy) {
|
||||
do_timeout(20, checkBusy);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -176,11 +176,7 @@ POP3Pump.prototype._checkBusy = function() {
|
|||
}
|
||||
|
||||
// If the server hasn't quite finished, just delay a little longer.
|
||||
if (
|
||||
this._incomingServer.serverBusy ||
|
||||
(this._incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
||||
this._incomingServer.runningProtocol)
|
||||
) {
|
||||
if (this._incomingServer.serverBusy) {
|
||||
do_timeout(20, _checkPumpBusy);
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче