Bug 333549: Unused variable tmpurl, patch by Ryan Flint <rflint@dslr.net>, r+sr=dveditz

This commit is contained in:
gavin%gavinsharp.com 2006-04-13 23:41:29 +00:00
parent 0a378004b2
commit 37d1c0b865

View File

@ -409,7 +409,6 @@ nsInstallPatch::NativePatch(nsIFile *sourceFile, nsIFile *patchFile, nsIFile **n
nsresult rv;
DIFFDATA *dd;
PRInt32 status = GDIFF_ERR_MEM;
char *tmpurl = NULL;
//nsFileSpec *outFileSpec = new nsFileSpec;
//nsFileSpec *tempSrcFile = new nsFileSpec; // TODO: do you need to free?
nsCOMPtr<nsIFile> outFileSpec;
@ -662,12 +661,6 @@ cleanup:
PR_DELETE(dd);
}
if ( tmpurl != NULL ) {
//XP_FileRemove( tmpurl, xpURL );
tmpurl = NULL;
PR_DELETE( tmpurl );
}
if (tempSrcFile)
{
tempSrcFile->Exists(&flagExists);