You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by bi...@locus.apache.org on 2000/12/01 00:02:23 UTC
cvs commit: xml-xerces/c/src/util/Platforms/OS2 OS2PlatformUtils.cpp
billsch 00/11/30 15:02:23
Modified: c/src/util/Platforms/OS2 OS2PlatformUtils.cpp
Log:
Remove dead code (old StdOut and StdErr functions); minor clean-up
Revision Changes Path
1.8 +8 -38 xml-xerces/c/src/util/Platforms/OS2/OS2PlatformUtils.cpp
Index: OS2PlatformUtils.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/Platforms/OS2/OS2PlatformUtils.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- OS2PlatformUtils.cpp 2000/09/21 00:54:18 1.7
+++ OS2PlatformUtils.cpp 2000/11/30 23:02:22 1.8
@@ -55,7 +55,7 @@
*/
/*
- * $Id: OS2PlatformUtils.cpp,v 1.7 2000/09/21 00:54:18 aruna1 Exp $
+ * $Id: OS2PlatformUtils.cpp,v 1.8 2000/11/30 23:02:22 billsch Exp $
*/
@@ -63,8 +63,6 @@
// ---------------------------------------------------------------------------
// Includes
// ---------------------------------------------------------------------------
-#ifndef APP_NO_THREADS
-#endif
#define INCL_DOSSEMAPHORES
#define INCL_DOSERRORS
@@ -89,7 +87,7 @@
#error A transcoding service must be chosen
#endif
- #if defined(XML_USE_INMEMORY_MSGLOADER)
+#if defined(XML_USE_INMEMORY_MSGLOADER)
#include <util/MsgLoaders/InMemory/InMemMsgLoader.hpp>
#else
#error A message loading service must be chosen
@@ -101,37 +99,18 @@
#include <OS2.h>
-// -----------------------------------------------------------------------
-// File methods
-// -----------------------------------------------------------------------
-static void WriteUStrStdErr( const XMLCh* const toWrite)
-{
- char* tmpVal = XMLString::transcode(toWrite);
- ArrayJanitor<char> janText(tmpVal);
- if (!fputs(tmpVal, stderr))
- {
- ThrowXML(XMLPlatformUtilsException, XMLExcepts::Strm_StdErrWriteFailure);
- }
-}
-
-static void WriteUStrStdOut( const XMLCh* const toWrite)
-{
- char* tmpVal = XMLString::transcode(toWrite);
- ArrayJanitor<char> janText(tmpVal);
- if (!fputs(tmpVal, stdout))
- {
- ThrowXML(XMLPlatformUtilsException, XMLExcepts::Strm_StdOutWriteFailure);
- }
-}
-
-
// ---------------------------------------------------------------------------
-// XMLPlatformUtils: Platform init method
+// XMLPlatformUtils: Platform init and term methods
// ---------------------------------------------------------------------------
void XMLPlatformUtils::platformInit()
{
}
+void XMLPlatformUtils::platformTerm()
+{
+ // We don't have any termination requirements at this time
+}
+
// ---------------------------------------------------------------------------
// XMLPlatformUtils: File Methods
// ---------------------------------------------------------------------------
@@ -559,14 +538,5 @@
#else
return 0;
#endif
-}
-
-//void XMLPlatformUtils::platformInit()
-//{
-//}
-
-void XMLPlatformUtils::platformTerm()
-{
- // We don't have any termination requirements at this time
}