Bug 882502 - Remove unused knowsSearchNntpExtension and allowsPosting attributes from nsIMsgFolder. r=jcranmer
--- a/mailnews/base/public/nsIMsgFolder.idl
+++ b/mailnews/base/public/nsIMsgFolder.idl
@@ -27,17 +27,17 @@ interface nsIMsgThread;
interface nsIArray;
interface nsIMutableArray;
interface nsIMsgPluggableStore;
typedef long nsMsgBiffState;
// enumerated type for determining if a message has been replied to, forwarded, etc.
typedef long nsMsgDispositionState;
-[scriptable, uuid(9ce446f3-398c-4462-a4c6-0ce562d5bd29)]
+[scriptable, uuid(c72edf93-2a1f-42fa-868b-b19adaebf4ca)]
interface nsIMsgFolder : nsISupports {
const nsMsgBiffState nsMsgBiffState_NewMail = 0; // User has new mail waiting.
const nsMsgBiffState nsMsgBiffState_NoMail = 1; // No new mail is waiting.
const nsMsgBiffState nsMsgBiffState_Unknown = 2; // We dunno whether there is new mail.
/// Returns an enumerator containing the messages within the current database.
readonly attribute nsISimpleEnumerator messages;
@@ -280,26 +280,16 @@ interface nsIMsgFolder : nsISupports {
/**
* used to determine if it will take a long time to download all
* the headers in this folder - so that we can do folder notifications
* synchronously instead of asynchronously
*/
readonly attribute boolean manyHeadersToDownload;
- /**
- * this should go into a news-specific interface
- */
- readonly attribute boolean knowsSearchNntpExtension;
-
- /**
- * this should go into a news-specific interface
- */
- readonly attribute boolean allowsPosting;
-
readonly attribute ACString relativePathName;
/**
* size of this folder on disk (not including .msf file)
* for imap, it's the sum of the size of the messages
*/
attribute unsigned long sizeOnDisk;
--- a/mailnews/base/util/nsMsgDBFolder.cpp
+++ b/mailnews/base/util/nsMsgDBFolder.cpp
@@ -4406,30 +4406,16 @@ NS_IMETHODIMP nsMsgDBFolder::IsSpecialFo
NS_IMETHODIMP nsMsgDBFolder::GetDeletable(bool *deletable)
{
NS_ENSURE_ARG_POINTER(deletable);
*deletable = false;
return NS_OK;
}
-NS_IMETHODIMP nsMsgDBFolder::GetKnowsSearchNntpExtension(bool *knowsExtension)
-{
- NS_ENSURE_ARG_POINTER(knowsExtension);
- *knowsExtension = false;
- return NS_OK;
-}
-
-NS_IMETHODIMP nsMsgDBFolder::GetAllowsPosting(bool *allowsPosting)
-{
- NS_ENSURE_ARG_POINTER(allowsPosting);
- *allowsPosting = true;
- return NS_OK;
-}
-
NS_IMETHODIMP nsMsgDBFolder::GetDisplayRecipients(bool *displayRecipients)
{
nsresult rv;
*displayRecipients = false;
if (mFlags & nsMsgFolderFlags::SentMail && !(mFlags & nsMsgFolderFlags::Inbox))
*displayRecipients = true;
else if (mFlags & nsMsgFolderFlags::Queue)
*displayRecipients = true;