From aa288fc1b62b1b9e35acdb94efc35f5c11c40b57 Mon Sep 17 00:00:00 2001 From: "av%netscape.com" Date: Wed, 7 Jul 1999 13:37:36 +0000 Subject: [PATCH] Removing commented out code --- modules/plugin/base/src/nsPluginHostImpl.cpp | 16 +--------------- modules/plugin/nglsrc/nsPluginHostImpl.cpp | 16 +--------------- 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/modules/plugin/base/src/nsPluginHostImpl.cpp b/modules/plugin/base/src/nsPluginHostImpl.cpp index bd4cf66b7d39..404c7c85e1cb 100644 --- a/modules/plugin/base/src/nsPluginHostImpl.cpp +++ b/modules/plugin/base/src/nsPluginHostImpl.cpp @@ -2125,21 +2125,7 @@ NS_IMETHODIMP nsPluginHostImpl::GetPluginFactory(const char *aMimeType, nsIPlugi { #ifdef XP_WIN // actually load a dll on Windows -/* - nsPluginsDir pluginsDir; - if (! pluginsDir.Valid()) - return NS_ERROR_FAILURE; - char * path = (char *)pluginsDir.GetCString(); - PRInt32 len = PL_strlen(path) + PL_strlen(pluginTag->mFileName) + 2; - char * fullname = new char[len]; - if(fullname == NULL) - return NS_ERROR_FAILURE; - PL_strcpy(fullname, path); - PL_strcat(fullname, "\\"); - PL_strcat(fullname, pluginTag->mFileName); - nsFileSpec file(fullname); - delete fullname; -*/ + nsFileSpec file(pluginTag->mFileName); nsPluginFile pluginFile(file); diff --git a/modules/plugin/nglsrc/nsPluginHostImpl.cpp b/modules/plugin/nglsrc/nsPluginHostImpl.cpp index bd4cf66b7d39..404c7c85e1cb 100644 --- a/modules/plugin/nglsrc/nsPluginHostImpl.cpp +++ b/modules/plugin/nglsrc/nsPluginHostImpl.cpp @@ -2125,21 +2125,7 @@ NS_IMETHODIMP nsPluginHostImpl::GetPluginFactory(const char *aMimeType, nsIPlugi { #ifdef XP_WIN // actually load a dll on Windows -/* - nsPluginsDir pluginsDir; - if (! pluginsDir.Valid()) - return NS_ERROR_FAILURE; - char * path = (char *)pluginsDir.GetCString(); - PRInt32 len = PL_strlen(path) + PL_strlen(pluginTag->mFileName) + 2; - char * fullname = new char[len]; - if(fullname == NULL) - return NS_ERROR_FAILURE; - PL_strcpy(fullname, path); - PL_strcat(fullname, "\\"); - PL_strcat(fullname, pluginTag->mFileName); - nsFileSpec file(fullname); - delete fullname; -*/ + nsFileSpec file(pluginTag->mFileName); nsPluginFile pluginFile(file);