diff options
author | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-02-06 04:28:09 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-02-06 04:28:09 +0800 |
commit | 768eae4a4874a7fe0eada98423f61d84f6416bde (patch) | |
tree | 707977820ddbc47121fb107c8569cbb5bb2ef566 /embed/mozilla/MozRegisterComponents.cpp | |
parent | 4e522c23a0650605cf8270f381ca10f2f35bbf78 (diff) | |
download | gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar.gz gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar.bz2 gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar.lz gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar.xz gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar.zst gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.zip |
*** empty log message ***
Diffstat (limited to 'embed/mozilla/MozRegisterComponents.cpp')
-rw-r--r-- | embed/mozilla/MozRegisterComponents.cpp | 24 |
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 */ |