Bug 219979 remove unused variable and function

r=dveditz sr=dveditz
This commit is contained in:
timeless%mozdev.org 2003-10-22 00:30:33 +00:00
parent 0b0d1713ed
commit 6e1274be92
2 changed files with 0 additions and 45 deletions

View File

@ -176,7 +176,6 @@ CertReader::OnDataAvailable(nsIRequest *request,
continue;
const char* caret = mLeftoverBuffer.get();
const char* end = caret + mLeftoverBuffer.Length();
ZipLocal_* ziplocal = (ZipLocal_*) caret;

View File

@ -689,50 +689,6 @@ InstallDeleteComponent(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, js
return JS_TRUE;
}
//
// Native method DiskSpaceAvailable
//
PR_STATIC_CALLBACK(JSBool)
InstallDiskSpaceAvailable(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{
nsInstall *nativeThis = (nsInstall*)JS_GetPrivate(cx, obj);
PRInt64 nativeRet;
nsAutoString b0;
*rval = INT_TO_JSVAL(nsInstall::UNEXPECTED_ERROR);
// If there's no private data, this must be the prototype, so ignore
if (nsnull == nativeThis) {
return JS_TRUE;
}
if(argc >= 1)
{
// public int DiskSpaceAvailable ( Object localDirSpec);
ConvertJSValToStr(b0, cx, argv[0]);
if(NS_OK != nativeThis->DiskSpaceAvailable(b0, &nativeRet))
{
return JS_TRUE;
}
double d;
LL_L2D(d, nativeRet);
JS_NewDoubleValue( cx, d, rval );
}
else
{
JS_ReportError(cx, "Function DiskSpaceAvailable requires 1 parameters");
}
return JS_TRUE;
}
//
// Native method Execute
//