diff options
Diffstat (limited to 'TAO/examples/POA/FindPOA/FindPOA.cpp')
-rw-r--r-- | TAO/examples/POA/FindPOA/FindPOA.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/TAO/examples/POA/FindPOA/FindPOA.cpp b/TAO/examples/POA/FindPOA/FindPOA.cpp index 871d89108c9..c39ef88b454 100644 --- a/TAO/examples/POA/FindPOA/FindPOA.cpp +++ b/TAO/examples/POA/FindPOA/FindPOA.cpp @@ -22,35 +22,6 @@ ACE_RCSID(FindPOA, FindPOA, "$Id$") -void -find_non_existant_POA (PortableServer::POA_ptr parent, - const char *child_poa_name, - int activate) -{ - int expected_exception_raised = 0; - - // New environment. - ACE_TRY_NEW_ENV - { - // Try to find child poa. - PortableServer::POA_var child_poa = - parent->find_POA (child_poa_name, - activate, - ACE_TRY_ENV); - ACE_TRY_CHECK; - } - ACE_CATCH (PortableServer::POA::AdapterNonExistent, foo) - { - expected_exception_raised = 1; - } - ACE_ENDTRY; - - ACE_ASSERT (expected_exception_raised); - - // In non-debug compiles, asserts will disappear. - ACE_UNUSED_ARG (expected_exception_raised); -} - int main (int argc, char **argv) { @@ -82,12 +53,6 @@ main (int argc, char **argv) poa_manager->activate (ACE_TRY_ENV); ACE_TRY_CHECK; - // Try to find a non-existant POA. Since the Adapter Activator - // has not been installed yet, this call should fail. - find_non_existant_POA (root_poa.in (), - "firstPOA", - 1); - // Get a TAO_Adapter_Activator reference PortableServer::AdapterActivator_var activator = new TAO_Adapter_Activator (poa_manager.in ()); @@ -113,13 +78,6 @@ main (int argc, char **argv) ACE_TRY_ENV); ACE_TRY_CHECK; - // Try to find a non-existant POA. Even though the Adapter - // Activator has been installed, this call should fail because - // the activate (if not found) flag is 0. - find_non_existant_POA (root_poa.in (), - "thirdPOA", - 0); - // Get the names of all the POAs CORBA::String_var root_poa_name = root_poa->the_name (ACE_TRY_ENV); |