diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-09-18 18:06:36 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-09-20 08:32:39 +0000 |
commit | b7c41f1d1fcabc8f4abc670d5a18546a117b540a (patch) | |
tree | aad89133f57f8d7d5d3cb76d0dec7243f1c40a88 /sax/source/tools/fastserializer.cxx | |
parent | cf480d6c37e8c58972ee8a3e3ce04747f3ae0b5e (diff) |
unusedcode: FastSaxSerializer is not used through UNO
Change-Id: I07d7b78be200f5f4a0674361237ef45b2bd1e3e1
Reviewed-on: https://gerrit.libreoffice.org/651
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'sax/source/tools/fastserializer.cxx')
-rw-r--r-- | sax/source/tools/fastserializer.cxx | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx index bd84747cb527..d12e7711acc1 100644 --- a/sax/source/tools/fastserializer.cxx +++ b/sax/source/tools/fastserializer.cxx @@ -45,8 +45,6 @@ using ::com::sun::star::xml::FastAttribute; using ::com::sun::star::xml::Attribute; using ::com::sun::star::xml::sax::SAXException; using ::com::sun::star::xml::sax::XFastAttributeList; -using ::com::sun::star::xml::sax::XFastTokenHandler; -using ::com::sun::star::xml::sax::XFastSerializer; using ::com::sun::star::io::XOutputStream; using ::com::sun::star::io::NotConnectedException; using ::com::sun::star::io::IOException; @@ -145,27 +143,6 @@ namespace sax_fastparser { writeBytes(toUnoSequence(maClosingBracket)); } - void SAL_CALL FastSaxSerializer::startUnknownElement( const OUString& Namespace, const OUString& Name, const Reference< XFastAttributeList >& Attribs ) - throw (SAXException, RuntimeException) - { - if (!mxOutputStream.is()) - return; - - writeBytes(toUnoSequence(maOpeningBracket)); - - if (!Namespace.isEmpty()) - { - write(Namespace); - writeBytes(toUnoSequence(maColon)); - } - - write(Name); - - writeFastAttributeList(Attribs); - - writeBytes(toUnoSequence(maClosingBracket)); - } - void SAL_CALL FastSaxSerializer::endFastElement( ::sal_Int32 Element ) throw (SAXException, RuntimeException) { @@ -179,25 +156,6 @@ namespace sax_fastparser { writeBytes(toUnoSequence(maClosingBracket)); } - void SAL_CALL FastSaxSerializer::endUnknownElement( const OUString& Namespace, const OUString& Name ) - throw (SAXException, RuntimeException) - { - if (!mxOutputStream.is()) - return; - - writeBytes(toUnoSequence(maOpeningBracketAndSlash)); - - if (!Namespace.isEmpty()) - { - write(Namespace); - writeBytes(toUnoSequence(maColon)); - } - - write(Name); - - writeBytes(toUnoSequence(maClosingBracket)); - } - void SAL_CALL FastSaxSerializer::singleFastElement( ::sal_Int32 Element, const Reference< XFastAttributeList >& Attribs ) throw (SAXException, RuntimeException) { @@ -215,27 +173,6 @@ namespace sax_fastparser { writeBytes(toUnoSequence(maSlashAndClosingBracket)); } - void SAL_CALL FastSaxSerializer::singleUnknownElement( const OUString& Namespace, const OUString& Name, const Reference< XFastAttributeList >& Attribs ) - throw (SAXException, RuntimeException) - { - if (!mxOutputStream.is()) - return; - - writeBytes(toUnoSequence(maOpeningBracket)); - - if (!Namespace.isEmpty()) - { - write(Namespace); - writeBytes(toUnoSequence(maColon)); - } - - write(Name); - - writeFastAttributeList(Attribs); - - writeBytes(toUnoSequence(maSlashAndClosingBracket)); - } - void SAL_CALL FastSaxSerializer::characters( const OUString& aChars ) throw (SAXException, RuntimeException) { @@ -289,40 +226,6 @@ namespace sax_fastparser { } } - // XServiceInfo - OUString FastSaxSerializer::getImplementationName() throw (RuntimeException) - { - return OUString( SERIALIZER_IMPLEMENTATION_NAME ); - } - - // XServiceInfo - sal_Bool FastSaxSerializer::supportsService(const OUString& ServiceName) throw (RuntimeException) - { - Sequence< OUString > aSNL = getSupportedServiceNames(); - const OUString * pArray = aSNL.getConstArray(); - - for( sal_Int32 i = 0; i < aSNL.getLength(); i++ ) - if( pArray[i] == ServiceName ) - return sal_True; - - return sal_False; - } - - // XServiceInfo - Sequence< OUString > FastSaxSerializer::getSupportedServiceNames(void) throw (RuntimeException) - { - Sequence<OUString> seq(1); - seq.getArray()[0] = OUString( SERIALIZER_SERVICE_NAME ); - return seq; - } - - Sequence< OUString > FastSaxSerializer::getSupportedServiceNames_Static(void) - { - Sequence<OUString> aRet(1); - aRet.getArray()[0] = OUString( SERIALIZER_SERVICE_NAME ); - return aRet; - } - void FastSaxSerializer::mark( Int32Sequence aOrder ) { if ( aOrder.hasElements() ) |