summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwilson_d <wilson_d@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-11-19 21:22:56 +0000
committerwilson_d <wilson_d@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-11-19 21:22:56 +0000
commit1fa3e171e7cf245d0615b74921b5e111787b47d5 (patch)
tree8aa1eba3ae417d33c0958f2db3bd968fb378be00
parent37bcf09c36bd876e99072e2640fa1385ac81d236 (diff)
downloadATCD-1fa3e171e7cf245d0615b74921b5e111787b47d5.tar.gz
ChangeLogTag: Wed Nov 19 14:30:07 2003 Dale Wilson <wilson_d@ociweb.com>
-rw-r--r--TAO/ChangeLog3
-rw-r--r--TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp102
2 files changed, 5 insertions, 100 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog
index 84c27dcf6c7..d2ae9af1194 100644
--- a/TAO/ChangeLog
+++ b/TAO/ChangeLog
@@ -1,4 +1,7 @@
Wed Nov 19 14:30:07 2003 Dale Wilson <wilson_d@ociweb.com>
+ * orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp
+ Remove dead code.
+ Cast string constant to avoid solaris compiler warning.
* orbsvcs/tests/FT_App/README:
* orbsvcs/tests/FT_App/run_test_detector.pl:
diff --git a/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp b/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp
index 939fc4e3bce..f61f5e3c22e 100644
--- a/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp
+++ b/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp
@@ -311,7 +311,7 @@ int TAO::FT_FaultDetectorFactory_i::init (CORBA::ORB_ptr orb ACE_ENV_ARG_DECL)
ACE_CATCHANY
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "ReplicaFactory: Exception resolving ReplicationManager, and no -f option was given. Factory will not be registered.\n" );
+ "ReplicaFactory: Exception resolving ReplicationManager. Factory will not be registered.\n" );
}
ACE_ENDTRY;
}
@@ -524,7 +524,6 @@ CORBA::Object_ptr TAO::FT_FaultDetectorFactory_i::create_object (
int missingParameter = 0;
const char * missingParameterName = 0;
-#if 1 // PG_FIND
FT::FaultNotifier_ptr notifier;
if (! ::TAO_PG::find (decoder, ::FT::FT_NOTIFIER, notifier) )
{
@@ -595,7 +594,7 @@ CORBA::Object_ptr TAO::FT_FaultDetectorFactory_i::create_object (
}
else
{
- object_type = "unknown";
+ object_type = ACE_const_cast (char *, "unknown");
// Not required: missingParameter = 1;
ACE_DEBUG ((LM_DEBUG, "Object type not given.\n"));
}
@@ -605,103 +604,6 @@ CORBA::Object_ptr TAO::FT_FaultDetectorFactory_i::create_object (
{
// Not required: missingParameter = 1;
}
-#else // PG_FIND
-
- PortableGroup::Value * any;
-
- FT::FaultNotifier_ptr notifier (0);
- if ( decoder.find (FT::FT_NOTIFIER, any))
- {
- if ((*any) >>= notifier)
- {
- if (! CORBA::is_nil (this->notifier_.in ()))
- {
- notifier = FT::FaultNotifier::_duplicate (this->notifier_.in ());
- }
- else
- {
- ACE_ERROR ((LM_ERROR,
- "FaultDetectorFactory::create_object: Nil parameter %s\n",
- ::FT::FT_NOTIFIER
- ));
- missingParameter = 1;
- missingParameterName = ::FT::FT_NOTIFIER;
- }
- }
- else
- {
- ACE_ERROR ((LM_ERROR,
- "FaultDetectorFactory::create_object: Wrong type parameter %s\n",
- ::FT::FT_NOTIFIER
- ));
- missingParameter = 1;
- missingParameterName = ::FT::FT_NOTIFIER;
- }
- }
- else
- {
- ACE_ERROR ((LM_ERROR,
- "FaultDetectorFactory::create_object: Missing parameter %s\n",
- ::FT::FT_NOTIFIER
- ));
- missingParameter = 1;
- missingParameterName = ::FT::FT_NOTIFIER;
- }
-
- FT::PullMonitorable_ptr monitorable (0);
- if ( decoder.find (FT::FT_MONITORABLE, any))
- {
- if (! ((*any) >>= monitorable))
- {
- ACE_ERROR ((LM_ERROR,
- "FaultDetectorFactory::create_object: Wrong type parameter %s\n",
- ::FT::FT_MONITORABLE
- ));
- missingParameter = 1;
- missingParameterName = ::FT::FT_MONITORABLE;
- }
- }
- else
- {
- ACE_ERROR ((LM_ERROR,
- "FaultDetectorFactory::create_object: Missing parameter %s\n",
- ::FT::FT_MONITORABLE
- ));
- missingParameter = 1;
- missingParameterName = ::FT::FT_MONITORABLE;
- }
-
- FT::FTDomainId domain_id = this->domain_;
- if ( decoder.find (FT::FT_DOMAIN_ID, any))
- {
- if (! ((*any) >>= domain_id))
- {
- ACE_ERROR ((LM_ERROR,
- "FaultDetectorFactory::create_object: Wrong type parameter %s\n",
- ::FT::FT_DOMAIN_ID
- ));
- }
- }
-
- FT::Location * object_location = & this->location_;
- if ( decoder.find (FT::FT_LOCATION, any))
- {
- (*any) >>= object_location;
- }
-
- FT::TypeId object_type = "unknown";
- if ( decoder.find (FT::FT_LOCATION, any))
- {
- (*any) >>= object_type;
- }
-
- FT::ObjectGroupId group_id = 0;
- if ( decoder.find (FT::FT_GROUP_ID, any))
- {
- (*any) >>= group_id;
- }
-#endif // PG_FIND
-
if (missingParameter)
{