From c0acdf26c522b4bade04095622a1ebb8695f07ab Mon Sep 17 00:00:00 2001 From: "dp%netscape.com" Date: Tue, 25 Sep 2001 00:19:52 +0000 Subject: [PATCH] bug 29063 Removing unneccessary stat() r/sr=waterson/alecf git-svn-id: svn://10.0.0.236/trunk@103665 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/components/xcDll.cpp | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/mozilla/xpcom/components/xcDll.cpp b/mozilla/xpcom/components/xcDll.cpp index 9c513af5ffc..9de3329820c 100644 --- a/mozilla/xpcom/components/xcDll.cpp +++ b/mozilla/xpcom/components/xcDll.cpp @@ -155,25 +155,10 @@ nsDll::nsDll(const char *libPersistentDescriptor, PRInt64* modDate, PRInt64* fil void nsDll::Init(nsIFile *dllSpec) { - // Addref the m_dllSpec + // Load will fail anyway. So dont bother to stat the file + m_dllSpec = dllSpec; - // Make sure we are dealing with a file - PRBool isFile = PR_FALSE; - nsresult rv = m_dllSpec->IsFile(&isFile); - if (NS_FAILED(rv)) - { - m_status = DLL_INVALID_PARAM; - return; - } - - if (isFile == PR_FALSE) - { - // Not a file. Cant work with it. - m_status = DLL_NOT_FILE; - return; - } - m_status = DLL_OK; }