summaryrefslogtreecommitdiff
path: root/ACE/tests/IOStream_Test.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-06-08 09:30:34 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-06-08 09:30:34 +0200
commit6e9f7718c9e564e9a0ac1efbe34adfc3f74ed06c (patch)
treecb26bf0d1b1ba548782510d5b19ef70da8aa2ff8 /ACE/tests/IOStream_Test.cpp
parentf5be2f529f7579ff4fbb0c842a2ba675ef9725b2 (diff)
downloadATCD-6e9f7718c9e564e9a0ac1efbe34adfc3f74ed06c.tar.gz
Each platform we support provides std::string as string class, define ACE_HAS_STRING_CLASS always and removed the checks for it
* ACE/ace/IOStream.h: * ACE/ace/IOStream_T.cpp: * ACE/ace/IOStream_T.h: * ACE/ace/config-aix-5.x.h: * ACE/ace/config-all.h: * ACE/ace/config-cygwin32.h: * ACE/ace/config-hpux-11.00.h: * ACE/ace/config-hurd.h: * ACE/ace/config-icc-common.h: * ACE/ace/config-kfreebsd.h: * ACE/ace/config-linux-common.h: * ACE/tests/IOStream_Test.cpp:
Diffstat (limited to 'ACE/tests/IOStream_Test.cpp')
-rw-r--r--ACE/tests/IOStream_Test.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/ACE/tests/IOStream_Test.cpp b/ACE/tests/IOStream_Test.cpp
index 52897c15e3b..a9c51dfe39f 100644
--- a/ACE/tests/IOStream_Test.cpp
+++ b/ACE/tests/IOStream_Test.cpp
@@ -316,7 +316,6 @@ server (void *arg = 0)
// Compared to the method above, this is quite messy. Notice also
// that whitespace is lost.
-#if defined (ACE_HAS_STRING_CLASS)
ACE_IOStream_String buf;
ACE_DEBUG ((LM_DEBUG,
" (%P|%t) Server Received: ("));
@@ -335,25 +334,6 @@ server (void *arg = 0)
ACE_DEBUG ((LM_DEBUG,
")\n"));
-#else
- char buf[BUFSIZ];
- ACE_OS::memset (buf, 0, sizeof buf);
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (" (%P|%t) Server Received: (")));
-
- while (ACE_OS::strlen (buf) == 0
- || buf[ACE_OS::strlen (buf) - 1] != '"')
- {
- if (! (client_handler >> buf))
- break;
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("%C "),
- buf));
- }
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (")\n")));
-#endif /* ACE_HAS_STRING_CLASS */
// Send some non-textual data to the client. We use a single
// character to separate the fields but we could have used any valid