mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-16 03:34:06 +00:00
news doesn't need its own implementation of GetName
This commit is contained in:
parent
2c821c57bc
commit
586ee5c8c5
@ -717,18 +717,6 @@ nsMsgNewsFolder::GetChildNamed(const char *name, nsISupports ** aChild)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsMsgNewsFolder::GetName(PRUnichar **name)
|
||||
{
|
||||
if(!name)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
nsAutoString folderName;
|
||||
nsNewsURI2Name(kNewsRootURI, mURI, folderName);
|
||||
*name = folderName.ToNewUnicode();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsMsgNewsFolder::GetPrettyName(PRUnichar ** prettyName)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
|
@ -63,8 +63,6 @@ public:
|
||||
|
||||
NS_IMETHOD GetChildNamed(const char* name, nsISupports ** aChild);
|
||||
|
||||
// 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 news folder
|
||||
|
||||
NS_IMETHOD BuildFolderURL(char **url);
|
||||
|
Loading…
Reference in New Issue
Block a user