From 8510f324a53ffd2dac41feea520acdf4c2443765 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 13 Nov 2013 07:47:39 +0200 Subject: Drop support for Xerces-C++ 2-series --- xsd-frontend/schema-dom-parser.cxx | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'xsd-frontend/schema-dom-parser.cxx') diff --git a/xsd-frontend/schema-dom-parser.cxx b/xsd-frontend/schema-dom-parser.cxx index 98033b2..7056039 100644 --- a/xsd-frontend/schema-dom-parser.cxx +++ b/xsd-frontend/schema-dom-parser.cxx @@ -44,11 +44,7 @@ namespace XSDFrontend const unsigned int url_id, const XMLCh* const prefix, const RefVectorOf& attributes, -#if _XERCES_VERSION >= 30000 const XMLSize_t attr_count, -#else - const unsigned int attr_count, -#endif const bool empty, const bool root) { @@ -77,18 +73,8 @@ namespace XSDFrontend ReaderMgr::LastExtEntityInfo info; ((ReaderMgr*) fScanner->getLocator())->getLastExtEntityInfo(info); -#if _XERCES_VERSION >= 30000 unsigned long l (static_cast (info.lineNumber)); unsigned long c (static_cast (info.colNumber)); -#else - unsigned long l (info.lineNumber == -1 - ? 0UL - : static_cast (info.lineNumber)); - - unsigned long c (info.colNumber == -1 - ? 0UL - : static_cast (info.colNumber)); -#endif fCurrentNode->setUserData (line_key, reinterpret_cast (l), 0); fCurrentNode->setUserData (column_key, reinterpret_cast (c), 0); @@ -124,11 +110,7 @@ namespace XSDFrontend void SchemaDOMParser:: docCharacters (const XMLCh* const s, -#if _XERCES_VERSION >= 30000 const XMLSize_t length, -#else - const unsigned int length, -#endif const bool cdata) { // Ignore chars outside of content. @@ -177,11 +159,7 @@ namespace XSDFrontend void SchemaDOMParser:: ignorableWhitespace (const XMLCh* const s, -#if _XERCES_VERSION >= 30000 const XMLSize_t length, -#else - const unsigned int length, -#endif const bool cdata) { // Ignore chars before the root element. -- cgit v1.1