get rid of local mail's implementation of GetName

This commit is contained in:
alecf%netscape.com 1999-08-10 00:47:07 +00:00
parent 0f5d4fd37b
commit ef175cd013
2 changed files with 0 additions and 32 deletions

View File

@ -776,36 +776,6 @@ NS_IMETHODIMP nsMsgLocalMailFolder::Adopt(nsIMsgFolder *srcFolder, PRUint32 *out
return NS_OK;
}
NS_IMETHODIMP nsMsgLocalMailFolder::GetName(PRUnichar **name)
{
if(!name)
return NS_ERROR_NULL_POINTER;
if (!mHaveReadNameFromDB)
{
if (mDepth == 1)
{
nsString localMailStr("Local Mail");
SetName((PRUnichar *) localMailStr.GetUnicode());
mHaveReadNameFromDB = TRUE;
*name = mName.ToNewUnicode();
if(!(*name))
return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
else
{
//Need to read the name from the database
}
}
nsAutoString folderName;
nsLocalURI2Name(kMailboxRootURI, mURI, folderName);
*name = folderName.ToNewUnicode();
return NS_OK;
}
NS_IMETHODIMP nsMsgLocalMailFolder::GetPrettyName(PRUnichar ** prettyName)
{
if (mDepth == 1) {

View File

@ -93,8 +93,6 @@ public:
NS_IMETHOD Rename (const char *newName);
NS_IMETHOD Adopt(nsIMsgFolder *srcFolder, PRUint32 *outPos);
// this override pulls the value from the db
NS_IMETHOD GetName(PRUnichar ** name); // Name of this folder (as presented to user).
NS_IMETHOD GetPrettyName(PRUnichar** prettyName); // Override of the base, for top-level mail folder
NS_IMETHOD BuildFolderURL(char **url);