From 6e1274be9274d36745b399f24da7a3243a57d98d Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Wed, 22 Oct 2003 00:30:33 +0000 Subject: [PATCH] Bug 219979 remove unused variable and function r=dveditz sr=dveditz --- xpinstall/src/CertReader.cpp | 1 - xpinstall/src/nsJSInstall.cpp | 44 ----------------------------------- 2 files changed, 45 deletions(-) diff --git a/xpinstall/src/CertReader.cpp b/xpinstall/src/CertReader.cpp index d375a65cd7d0..29c30d6e59ed 100644 --- a/xpinstall/src/CertReader.cpp +++ b/xpinstall/src/CertReader.cpp @@ -176,7 +176,6 @@ CertReader::OnDataAvailable(nsIRequest *request, continue; const char* caret = mLeftoverBuffer.get(); - const char* end = caret + mLeftoverBuffer.Length(); ZipLocal_* ziplocal = (ZipLocal_*) caret; diff --git a/xpinstall/src/nsJSInstall.cpp b/xpinstall/src/nsJSInstall.cpp index cc79e8e9524a..215b7805e075 100644 --- a/xpinstall/src/nsJSInstall.cpp +++ b/xpinstall/src/nsJSInstall.cpp @@ -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 //