mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
fix build warning, r/sr=sspitzer, no bug
This commit is contained in:
parent
24e1fab20d
commit
2034afd0ef
@ -245,8 +245,7 @@ void nsIMAPNamespaceList::ClearNamespaces(PRBool deleteFromPrefsNamespaces, PRBo
|
||||
|
||||
nsIMAPNamespace *nsIMAPNamespaceList::GetNamespaceNumber(int nodeIndex)
|
||||
{
|
||||
int total = GetNumberOfNamespaces();
|
||||
NS_ASSERTION(nodeIndex >= 0 && nodeIndex < total, "invalid IMAP namespace node index");
|
||||
NS_ASSERTION(nodeIndex >= 0 && nodeIndex < GetNumberOfNamespaces(), "invalid IMAP namespace node index");
|
||||
if (nodeIndex < 0) nodeIndex = 0;
|
||||
|
||||
// XXX really could be just ElementAt; that's why we have the assertion
|
||||
|
@ -3141,7 +3141,6 @@ NS_IMETHODIMP nsImapService::NewURI(const nsACString &aSpec,
|
||||
|
||||
nsXPIDLCString folderName;
|
||||
nsXPIDLCString urlPath;
|
||||
PRBool possibleOtherUsersFolder = PR_FALSE;
|
||||
|
||||
// if we can't get a folder name out of the url then I think this is an error
|
||||
aImapUrl->CreateCanonicalSourceFolderPathString(getter_Copies(folderName));
|
||||
|
Loading…
Reference in New Issue
Block a user