зеркало из https://github.com/mozilla/gecko-dev.git
IMAP doesn't need nsImapURI2Name anymore
This commit is contained in:
Родитель
e832b72a6c
Коммит
576bc98ae1
|
@ -167,18 +167,6 @@ nsImapURI2Path(const char* rootURI, const char* uriStr, nsFileSpec& pathResult)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsImapURI2Name(const char* rootURI, const char* uriStr, nsString& name)
|
||||
{
|
||||
nsAutoString uri = uriStr;
|
||||
if (uri.Find(rootURI) != 0) // if doesn't start with rootURI
|
||||
return NS_ERROR_FAILURE;
|
||||
PRInt32 pos = uri.RFindChar('/');
|
||||
PRInt32 length = uri.Length();
|
||||
PRInt32 count = length - (pos + 1);
|
||||
return uri.Right(name, count);
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsImapURI2FullName(const char* rootURI, const char* hostname, char* uriStr,
|
||||
nsString& name)
|
||||
|
|
|
@ -32,9 +32,6 @@ nsImapURI2Path(const char* rootURI, const char* uriStr,
|
|||
extern nsresult
|
||||
nsPath2ImapURI(const char* rootURI, const nsFileSpec& path, char* *uri);
|
||||
|
||||
extern nsresult
|
||||
nsImapURI2Name(const char* rootURI, const char* uriStr, nsString& name);
|
||||
|
||||
extern nsresult
|
||||
nsImapURI2FullName(const char* rootURI, const char* hostname, char* uriStr,
|
||||
nsString& name);
|
||||
|
|
Загрузка…
Ссылка в новой задаче