Salome HOME
#29456 [EDF] (2022-T1) Finalization of SSL implementation
[modules/geom.git] / src / GEOMGUI / GeometryGUI.cxx
index e451b6f615e6269ed2855035b1085ab8fb8ea341..31bbe17166d21eeee8215a804cab764eef1702c6 100644 (file)
@@ -41,7 +41,6 @@
 #include "GEOMUtils_XmlHandler.hxx"
 #include "GEOMGUI_AnnotationMgr.h"
 #include "GEOMGUI_TextTreeSelector.h"
-#include "GEOM_Component_Generator.hxx"
 
 #include "GEOM_Actor.h"
 
@@ -223,17 +222,7 @@ GeometryGUI::GeometryGUI() : SalomeApp_Module( "GEOM" )
   if ( CORBA::is_nil( myComponentGeom ) )
   {
     SALOME_NamingService_Abstract *ns = SalomeApp_Application::namingService();
-    Engines::EngineComponent_var comp;
-    if( dynamic_cast<SALOME_NamingService *>(ns) )
-    {
-      comp = SalomeApp_Application::lcc()->FindOrLoad_Component( "FactoryServer", "GEOM" );
-    }
-    else
-    {
-      comp = RetrieveGEOMInstance();
-      CORBA::Object_var comp2 = CORBA::Object::_narrow(comp);
-      KERNEL::RegisterCompo("GEOM",comp2);
-    }
+    Engines::EngineComponent_var comp = SalomeApp_Application::lcc()->FindOrLoad_Component( "FactoryServer", "GEOM" );
     myComponentGeom = GEOM::GEOM_Gen::_narrow( comp );
   }