From 1b33726ca18561aa733a48f40be725e93d4246e0 Mon Sep 17 00:00:00 2001
From: PeiYong Zhang <peiyongz@apache.org>
Date: Wed, 7 Apr 2004 15:26:45 +0000
Subject: [PATCH] code cleaning

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175861 13f79535-47bb-0310-9956-ffa450edef68
---
 src/xercesc/dom/impl/DOMErrorImpl.cpp          | 5 +++--
 src/xercesc/dom/impl/DOMImplementationImpl.cpp | 8 ++------
 src/xercesc/dom/impl/DOMNodeImpl.cpp           | 6 ------
 3 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/src/xercesc/dom/impl/DOMErrorImpl.cpp b/src/xercesc/dom/impl/DOMErrorImpl.cpp
index 697d9c82d..48d9616ec 100644
--- a/src/xercesc/dom/impl/DOMErrorImpl.cpp
+++ b/src/xercesc/dom/impl/DOMErrorImpl.cpp
@@ -56,6 +56,9 @@
 
 /*
  * $Log$
+ * Revision 1.10  2004/04/07 15:26:45  peiyongz
+ * code cleaning
+ *
  * Revision 1.9  2004/04/01 22:05:32  peiyongz
  * invoke DOMException with Memory Manager
  *
@@ -151,8 +154,6 @@ void DOMErrorImpl::setLocation(DOMLocator* const location)
 void DOMErrorImpl::setRelatedException(void*) const
 {
     throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0);
-    //pending: if default value is 0
-    //throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0, XMLPlatformUtils::fgMemoryManager);
 }
 
 XERCES_CPP_NAMESPACE_END
diff --git a/src/xercesc/dom/impl/DOMImplementationImpl.cpp b/src/xercesc/dom/impl/DOMImplementationImpl.cpp
index e59e54ee5..b842a881a 100644
--- a/src/xercesc/dom/impl/DOMImplementationImpl.cpp
+++ b/src/xercesc/dom/impl/DOMImplementationImpl.cpp
@@ -240,8 +240,6 @@ DOMDocumentType *DOMImplementationImpl::createDocumentType(const XMLCh *qualifie
     // assume XML 1.0 since we do not know its version yet.
     if(!XMLChar1_0::isValidName(qualifiedName, XMLString::stringLen(qualifiedName)))
         throw DOMException(DOMException::INVALID_CHARACTER_ERR, 0);
-        //pending: if default value is 0
-        //throw DOMException(DOMException::INVALID_CHARACTER_ERR, 0, XMLPlatformUtils::fgMemoryManager);
 
     //to do: do we need to create with user's memorymanager???
     DOMDocumentTypeImpl* docType = new DOMDocumentTypeImpl(0, qualifiedName, publicId, systemId, true);
@@ -259,8 +257,7 @@ DOMDocument *DOMImplementationImpl::createDocument(const XMLCh *namespaceURI,
 //Introduced in DOM Level 3
 DOMImplementation* DOMImplementationImpl::getInterface(const XMLCh*){
     throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0);
-    //pending: if default value is 0
-    //throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0, XMLPlatformUtils::fgMemoryManager);
+
     return 0;
 }
 
@@ -325,8 +322,7 @@ DOMWriter* DOMImplementationImpl::createDOMWriter(MemoryManager* const manager)
 DOMInputSource* DOMImplementationImpl::createDOMInputSource()
 {
     throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0);
-    //pending: if default value is 0
-    //throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0, XMLPlatformUtils::fgMemoryManager);
+
     return 0;
 }
 
diff --git a/src/xercesc/dom/impl/DOMNodeImpl.cpp b/src/xercesc/dom/impl/DOMNodeImpl.cpp
index f661f4514..b3cdb0a84 100644
--- a/src/xercesc/dom/impl/DOMNodeImpl.cpp
+++ b/src/xercesc/dom/impl/DOMNodeImpl.cpp
@@ -391,18 +391,12 @@ const XMLCh* DOMNodeImpl::mapPrefix(const XMLCh *prefix,
         if (XMLString::equals(namespaceURI, XMLUni::fgXMLURIName))
             return XMLUni::fgXMLURIName;
         throw DOMException(DOMException::NAMESPACE_ERR, 0);
-        //pending: if default value is 0
-        //throw DOMException(DOMException::NAMESPACE_ERR, 0, XMLPlatformUtils::fgMemoryManager);
     } else if (nType == DOMNode::ATTRIBUTE_NODE && XMLString::equals(prefix, XMLUni::fgXMLNSString)) {
         if (XMLString::equals(namespaceURI, XMLUni::fgXMLNSURIName))
             return XMLUni::fgXMLNSURIName;
         throw DOMException(DOMException::NAMESPACE_ERR, 0);
-        //pending: if default value is 0
-        //throw DOMException(DOMException::NAMESPACE_ERR, 0, XMLPlatformUtils::fgMemoryManager);
     } else if (namespaceURI == 0 || *namespaceURI == 0) {
         throw DOMException(DOMException::NAMESPACE_ERR, 0);
-        //pending: if default value is 0
-        //throw DOMException(DOMException::NAMESPACE_ERR, 0, XMLPlatformUtils::fgMemoryManager);
     } else
         return namespaceURI;
     return namespaceURI;
-- 
GitLab