aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozRegisterComponents.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/MozRegisterComponents.cpp')
-rw-r--r--embed/mozilla/MozRegisterComponents.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/embed/mozilla/MozRegisterComponents.cpp b/embed/mozilla/MozRegisterComponents.cpp
index 3c5e64be7..a8950fc70 100644
--- a/embed/mozilla/MozRegisterComponents.cpp
+++ b/embed/mozilla/MozRegisterComponents.cpp
@@ -34,7 +34,6 @@
#include <nsIFactory.h>
#include <nsIComponentManager.h>
#include <nsCOMPtr.h>
-#include <nsILocalFile.h>
#include <glib.h>
@@ -55,10 +54,6 @@ NS_METHOD RegisterFactory (nsresult (aFactoryFunc)(nsIFactory** aFactory),
const nsCID & aClass, const char *aClassName,
const char *aContractID, PRBool aReplace);
-NS_METHOD RegisterComponent (const nsCID & aClass, const char *aClassName,
- const char *aContractID, const char *aDLLPath,
- PRBool aReplace);
-
//Annoying globals to track the mozilla ftp handler so it can be restored.
static PRBool ftpRegistered = PR_FALSE;
static nsCOMPtr<nsIFactory> nsFtpFactory;
@@ -144,25 +139,6 @@ NS_METHOD RegisterFactory (nsresult (aFactoryFunc)(nsIFactory** aFactory),
return rv;
}
-NS_METHOD RegisterComponent (const nsCID & aClass, const char *aClassName,
- const char *aContractID, const char *aDLLPath,
- PRBool aReplace)
-{
- nsresult rv = NS_OK;
-
- nsCOMPtr<nsILocalFile> dllFile;
- rv = NS_NewLocalFile (NS_ConvertUTF8toUCS2(aDLLPath), PR_TRUE, getter_AddRefs (dllFile));
- if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
-
- rv = nsComponentManager::RegisterComponentSpec (aClass,
- aClassName,
- aContractID,
- dllFile,
- aReplace,
- PR_FALSE);
- return rv;
-}
-
/**
* mozilla_register_FtpProtocolHandler: Register Ftp Protocol Handler
*/