summaryrefslogtreecommitdiff
path: root/TAO/tao/RTPortableServer/RT_POA_Initializer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/RTPortableServer/RT_POA_Initializer.cpp')
-rw-r--r--TAO/tao/RTPortableServer/RT_POA_Initializer.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/TAO/tao/RTPortableServer/RT_POA_Initializer.cpp b/TAO/tao/RTPortableServer/RT_POA_Initializer.cpp
index 6246591db3e..d4552cff9b7 100644
--- a/TAO/tao/RTPortableServer/RT_POA_Initializer.cpp
+++ b/TAO/tao/RTPortableServer/RT_POA_Initializer.cpp
@@ -30,40 +30,4 @@ TAO_RT_POA_Initializer::register_hooks_impl (TAO_Object_Adapter &object_adapter,
TAO_POA_RT_Policy_Validator (object_adapter.orb_core ()));
object_adapter.validator ().add_validator (rt_validator);
-
- // Add the default RT policies to the list of default POA policies.
- this->init_rt_default_policies (object_adapter.default_poa_policies (),
- object_adapter.orb_core (),
- ACE_TRY_ENV);
-
-}
-
-void
-TAO_RT_POA_Initializer::init_rt_default_policies (TAO_POA_Policy_Set &policies,
- TAO_ORB_Core &orb_core,
- CORBA::Environment &ACE_TRY_ENV)
-{
- CORBA::Policy_var policy =
- orb_core.get_cached_policy (TAO_CACHED_POLICY_PRIORITY_MODEL);
- if (!CORBA::is_nil (policy.in ()))
- {
- policies.merge_policy (policy.in (), ACE_TRY_ENV);
- ACE_CHECK;
- }
-
- CORBA::Policy_var protocol =
- orb_core.get_cached_policy (TAO_CACHED_POLICY_RT_SERVER_PROTOCOL);
- if (!CORBA::is_nil (protocol.in ()))
- {
- policies.merge_policy (protocol.in (), ACE_TRY_ENV);
- ACE_CHECK;
- }
-
- CORBA::Policy_var thread_pool =
- orb_core.get_cached_policy (TAO_CACHED_POLICY_THREADPOOL);
- if (!CORBA::is_nil (thread_pool.in ()))
- {
- policies.merge_policy (thread_pool.in (), ACE_TRY_ENV);
- ACE_CHECK;
- }
}