diff options
Diffstat (limited to 'ace/Dynamic_Service_Base.cpp')
-rw-r--r-- | ace/Dynamic_Service_Base.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/ace/Dynamic_Service_Base.cpp b/ace/Dynamic_Service_Base.cpp deleted file mode 100644 index 4f62b6de092..00000000000 --- a/ace/Dynamic_Service_Base.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include "ace/Dynamic_Service_Base.h" -#include "ace/Service_Config.h" -#include "ace/Service_Repository.h" -#include "ace/Service_Types.h" -#include "ace/Log_Msg.h" - - -ACE_RCSID (ace, - Dynamic_Service_Base, - "$Id$") - - -void -ACE_Dynamic_Service_Base::dump (void) const -{ -#if defined (ACE_HAS_DUMP) - ACE_TRACE ("ACE_Dynamic_Service_Base::dump"); - - ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this)); - ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\n"))); - ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP)); -#endif /* ACE_HAS_DUMP */ -} - -// Get the instance using <name>. - -void * -ACE_Dynamic_Service_Base::instance (const ACE_TCHAR *name) -{ - ACE_TRACE ("ACE_Dynamic_Service_Base::instance"); - const ACE_Service_Type *svc_rec; - - if (ACE_Service_Repository::instance ()->find (name, - &svc_rec) == -1) - return 0; - - const ACE_Service_Type_Impl *type = svc_rec->type (); - - if (type == 0) - return 0; - - void *obj = type->object (); - return obj; -} |