Bug #352406 --> remove some dead code now that we use tags instead of labels. sr=bienvenu

This commit is contained in:
scott%scott-macgregor.org 2006-09-12 22:46:07 +00:00
parent 3c1a851528
commit 2964cc44d3
2 changed files with 1 additions and 45 deletions

View File

@ -123,7 +123,6 @@ NS_INTERFACE_MAP_BEGIN(nsMsgDBView)
NS_INTERFACE_MAP_ENTRY(nsIMsgDBView)
NS_INTERFACE_MAP_ENTRY(nsIDBChangeListener)
NS_INTERFACE_MAP_ENTRY(nsITreeView)
NS_INTERFACE_MAP_ENTRY(nsIObserver)
NS_INTERFACE_MAP_ENTRY(nsIJunkMailClassificationListener)
NS_INTERFACE_MAP_END
@ -276,47 +275,6 @@ nsresult nsMsgDBView::InitLabelStrings()
return rv;
}
NS_IMETHODIMP nsMsgDBView::Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *someData)
{
nsresult rv = NS_OK;
PRBool matchFound = PR_FALSE;
if (!strcmp(aTopic, NS_PREFBRANCH_PREFCHANGE_TOPIC_ID))
{
nsCString prefName;
nsCString indexStr;
PRUint32 prefNameLength;
PRInt32 indexInt;
PRInt32 irv;
prefName.AssignWithConversion(someData);
prefNameLength = prefName.Length();
/* Get the last character and convert it to an int.
* It should be a char from 1-5. */
indexStr.Assign(prefName.get() + prefNameLength - 1);
indexInt = indexStr.ToInteger(&irv);
NS_ASSERTION(!irv, "ToInteger() failed");
if (irv)
return NS_ERROR_FAILURE;
/* Determine if it's a description or a color preference */
if(prefName.Find(PREF_LABELS_DESCRIPTION, PR_TRUE, 0, 1) != kNotFound)
{
/* it's a description, get the localized string from the pref */
rv = GetPrefLocalizedString(prefName.get(), mLabelPrefDescriptions[indexInt - 1]);
matchFound = PR_TRUE;
}
if(matchFound) {
NS_ENSURE_SUCCESS(rv,rv);
NS_ASSERTION(mTree, "no tree, see bug #114956");
if(mTree)
mTree->Invalidate();
}
}
return NS_OK;
}
// helper function used to fetch strings from the messenger string bundle
PRUnichar * nsMsgDBView::GetString(const PRUnichar *aStringName)
{

View File

@ -61,7 +61,6 @@
#include "nsIAtom.h"
#include "nsIImapIncomingServer.h"
#include "nsIWeakReference.h"
#include "nsIObserver.h"
#include "nsIMsgFilterPlugin.h"
#include "nsIStringBundle.h"
#include "nsMsgTagService.h"
@ -92,7 +91,7 @@ enum eFieldType {
// The classes that implement the tree support will probably
// inherit from this class.
class nsMsgDBView : public nsIMsgDBView, public nsIDBChangeListener,
public nsITreeView, public nsIObserver,
public nsITreeView,
public nsIJunkMailClassificationListener
{
public:
@ -103,7 +102,6 @@ public:
NS_DECL_NSIMSGDBVIEW
NS_DECL_NSIDBCHANGELISTENER
NS_DECL_NSITREEVIEW
NS_DECL_NSIOBSERVER
NS_DECL_NSIJUNKMAILCLASSIFICATIONLISTENER
nsMsgViewIndex GetInsertIndexHelper(nsIMsgDBHdr *msgHdr, nsMsgKeyArray *keys,