From f2ec36ab5fa04e11dee655d9c623baac95db1eba Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 13 Nov 2013 07:46:45 +0200 Subject: Drop support for Xerces-C++ 2-series --- examples/cxx/tree/embedded/grammar-input-stream.cxx | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'examples/cxx/tree/embedded/grammar-input-stream.cxx') diff --git a/examples/cxx/tree/embedded/grammar-input-stream.cxx b/examples/cxx/tree/embedded/grammar-input-stream.cxx index 0c94ea6..270f1d9 100644 --- a/examples/cxx/tree/embedded/grammar-input-stream.cxx +++ b/examples/cxx/tree/embedded/grammar-input-stream.cxx @@ -16,27 +16,14 @@ grammar_input_stream (const XMLByte* data, std::size_t size) { } -#if _XERCES_VERSION >= 30000 XMLFilePos grammar_input_stream:: curPos () const { return static_cast (vpos_); } -#else -unsigned int grammar_input_stream:: -curPos () const -{ - return static_cast (vpos_); -} -#endif -#if _XERCES_VERSION >= 30000 XMLSize_t grammar_input_stream:: readBytes (XMLByte* const buf, const XMLSize_t size) -#else -unsigned int grammar_input_stream:: -readBytes (XMLByte* const buf, const unsigned int size) -#endif { std::size_t i (0); @@ -99,17 +86,11 @@ readBytes (XMLByte* const buf, const unsigned int size) vpos_ += i; -#if _XERCES_VERSION >= 30000 return static_cast (i); -#else - return static_cast (i); -#endif } -#if _XERCES_VERSION >= 30000 const XMLCh* grammar_input_stream:: getContentType () const { return 0; } -#endif -- cgit v1.1