summaryrefslogtreecommitdiff
path: root/ace/Dynamic_Service.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-11-12 01:39:27 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-11-12 01:39:27 +0000
commit9605b0842163bb1b7839793f1251406ba1deac23 (patch)
tree0dbf065c527367572a05337b68878e369098b7c7 /ace/Dynamic_Service.cpp
parent795c99a9a2eecff871b4cef86a40382d25a3afb5 (diff)
downloadATCD-java-1_0_0a.tar.gz
This commit was manufactured by cvs2svn to create tag 'java-1_0_0a'.java-1_0_0a
Diffstat (limited to 'ace/Dynamic_Service.cpp')
-rw-r--r--ace/Dynamic_Service.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/ace/Dynamic_Service.cpp b/ace/Dynamic_Service.cpp
deleted file mode 100644
index 05fec7a0913..00000000000
--- a/ace/Dynamic_Service.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-// Dynamic_Service.cpp
-// $Id$
-
-#if !defined (ACE_DYNAMIC_SERVICE_C)
-#define ACE_DYNAMIC_SERVICE_C
-
-#define ACE_BUILD_DLL
-#include "ace/Service_Config.h"
-#include "ace/Service_Repository.h"
-#include "ace/Dynamic_Service.h"
-
-template <class SERVICE> void
-ACE_Dynamic_Service<SERVICE>::dump (void) const
-{
- ACE_TRACE ("ACE_Dynamic_Service<SERVICE>::dump");
-
- ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
- ACE_DEBUG ((LM_DEBUG, "\n"));
- ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
-}
-
-// Get the instance using <name>.
-
-template <class SERVICE> SERVICE *
-ACE_Dynamic_Service<SERVICE>::instance (const char *name)
-{
- ACE_TRACE ("ACE_Dynamic_Service::instance");
- const ACE_Service_Record *svc_rec;
-
- if (ACE_Service_Config::svc_rep ()->find (name, &svc_rec) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "svc_rep"), 0);
-
- const ACE_Service_Type *type = svc_rec->type ();
-
- if (type == 0)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "type"), 0);
- else
- {
- const void *obj = type->object ();
- // This should be an RTTI typesafe downcast...
- SERVICE *n = (SERVICE *) obj;
- return n;
- }
-}
-
-#endif /* ACE_DYNAMIC_SERVICE_C */