summaryrefslogtreecommitdiff
path: root/TAO/tao/corbafwd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/corbafwd.cpp')
-rw-r--r--TAO/tao/corbafwd.cpp53
1 files changed, 0 insertions, 53 deletions
diff --git a/TAO/tao/corbafwd.cpp b/TAO/tao/corbafwd.cpp
index 1f1c301dc48..659db90faf8 100644
--- a/TAO/tao/corbafwd.cpp
+++ b/TAO/tao/corbafwd.cpp
@@ -6,63 +6,10 @@
# include "tao/corbafwd.i"
#endif /* ! __ACE_INLINE__ */
-#include "ace/OS.h"
-
ACE_RCSID (tao,
corbafwd,
"$Id$")
-char *
-CORBA::string_dup (const char *str)
-{
- if (!str)
- {
- errno = EINVAL;
- return 0;
- }
-
- size_t len = ACE_OS::strlen (str);
-
- // This allocates an extra byte for the '\0';
- char * copy = CORBA::string_alloc (ACE_static_cast (CORBA::ULong, len));
-
- // The memcpy() below assumes that the destination is a valid buffer.
- if (copy == 0)
- {
- return 0;
- }
-
- ACE_OS::memcpy (copy,
- str,
- len + 1);
- return copy;
-}
-
-// ----------------------------------------------------------------------
-// Wide strings
-// ----------------------------------------------------------------------
-
-CORBA::WChar*
-CORBA::wstring_dup (const WChar *const str)
-{
- if (!str)
- {
- errno = EINVAL;
- return 0;
- }
-
- CORBA::WChar* retval = CORBA::wstring_alloc (ACE_OS::wslen (str));
-
- // The wscpy() below assumes that the destination is a valid buffer.
- if (retval == 0)
- {
- return 0;
- }
-
- return ACE_OS::wscpy (retval,
- str);
-}
-
namespace CORBA
{
// ****************************************************************