IMAP doesn't need nsImapURI2Name anymore

This commit is contained in:
alecf%netscape.com 1999-08-10 00:52:59 +00:00
Родитель e832b72a6c
Коммит 576bc98ae1
2 изменённых файлов: 0 добавлений и 15 удалений

Просмотреть файл

@ -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);