From a7efb3feb739ba217592c093ea9158d503479d58 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 19 Apr 2007 11:23:04 -0400 Subject: [PATCH] ENH: Removed code unnecessary now that DynamicLoader is implemented better. --- Source/cmLoadCommandCommand.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx index fe73ee853..9634512f3 100644 --- a/Source/cmLoadCommandCommand.cxx +++ b/Source/cmLoadCommandCommand.cxx @@ -290,14 +290,7 @@ bool cmLoadCommandCommand::InitialPass(std::vector const& args) CM_INIT_FUNCTION initFunction = (CM_INIT_FUNCTION) cmsys::DynamicLoader::GetSymbolAddress(lib, initFuncName.c_str()); - if ( !initFunction ) - { - initFuncName = "_"; - initFuncName += args[0]; - initFuncName += "Init"; - initFunction = (CM_INIT_FUNCTION)( - cmsys::DynamicLoader::GetSymbolAddress(lib, initFuncName.c_str())); - } + // if the symbol is found call it to set the name on the // function blocker if(initFunction)