Kaydet (Commit) 2ecd5b03 authored tarafından Matúš Kukan's avatar Matúš Kukan Kaydeden (comit) Kohei Yoshida

sax: com.sun.star.xml.sax.FastSerializer seems to be unused

Change-Id: I826da00c83589f468c499879d86546d60b2aa515
Reviewed-on: https://gerrit.libreoffice.org/480Reviewed-by: 's avatarMichael Meeks <michael.meeks@suse.com>
Tested-by: 's avatarKohei Yoshida <kohei.yoshida@gmail.com>
üst ea744ff9
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include <cppuhelper/weak.hxx> #include <cppuhelper/weak.hxx>
#include <cppuhelper/implbase2.hxx> #include <cppuhelper/implbase2.hxx>
#include <fastserializer.hxx>
#include "fastparser.hxx" #include "fastparser.hxx"
using namespace sax_fastparser; using namespace sax_fastparser;
...@@ -34,9 +33,6 @@ using namespace ::com::sun::star::lang; ...@@ -34,9 +33,6 @@ using namespace ::com::sun::star::lang;
namespace sax_fastparser namespace sax_fastparser
{ {
//--------------------------------------
// the extern interface
//---------------------------------------
Reference< XInterface > SAL_CALL FastSaxParser_CreateInstance( Reference< XInterface > SAL_CALL FastSaxParser_CreateInstance(
SAL_UNUSED_PARAMETER const Reference< XMultiServiceFactory > & ) SAL_UNUSED_PARAMETER const Reference< XMultiServiceFactory > & )
throw(Exception) throw(Exception)
...@@ -45,13 +41,6 @@ Reference< XInterface > SAL_CALL FastSaxParser_CreateInstance( ...@@ -45,13 +41,6 @@ Reference< XInterface > SAL_CALL FastSaxParser_CreateInstance(
return Reference< XInterface > ( (OWeakObject * ) p ); return Reference< XInterface > ( (OWeakObject * ) p );
} }
Reference< XInterface > SAL_CALL FastSaxSerializer_CreateInstance(
SAL_UNUSED_PARAMETER const Reference< XMultiServiceFactory > & )
throw(Exception)
{
FastSaxSerializer *p = new FastSaxSerializer;
return Reference< XInterface > ( (OWeakObject * ) p );
}
} }
extern "C" extern "C"
...@@ -76,12 +65,6 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL fastsax_component_getFactory( ...@@ -76,12 +65,6 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL fastsax_component_getFactory(
FastSaxParser_CreateInstance, FastSaxParser_CreateInstance,
FastSaxParser::getSupportedServiceNames_Static() ); FastSaxParser::getSupportedServiceNames_Static() );
} }
else if ( aImplementationName == SERIALIZER_IMPLEMENTATION_NAME )
{
xRet = createSingleFactory( xSMgr, aImplementationName,
FastSaxSerializer_CreateInstance,
FastSaxSerializer::getSupportedServiceNames_Static() );
}
if (xRet.is()) if (xRet.is())
{ {
......
...@@ -22,7 +22,4 @@ ...@@ -22,7 +22,4 @@
<implementation name="com.sun.star.comp.extensions.xml.sax.FastParser"> <implementation name="com.sun.star.comp.extensions.xml.sax.FastParser">
<service name="com.sun.star.xml.sax.FastParser"/> <service name="com.sun.star.xml.sax.FastParser"/>
</implementation> </implementation>
<implementation name="com.sun.star.comp.extensions.xml.sax.FastSerializer">
<service name="com.sun.star.xml.sax.FastSerializer"/>
</implementation>
</component> </component>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <fastserializer.hxx> #include "fastserializer.hxx"
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include <comphelper/sequenceasvector.hxx> #include <comphelper/sequenceasvector.hxx>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
namespace sax_fastparser { namespace sax_fastparser {
class SAX_DLLPUBLIC FastSaxSerializer : public ::cppu::WeakImplHelper2< ::com::sun::star::xml::sax::XFastSerializer, ::com::sun::star::lang::XServiceInfo > class FastSaxSerializer : public ::cppu::WeakImplHelper2< ::com::sun::star::xml::sax::XFastSerializer, ::com::sun::star::lang::XServiceInfo >
{ {
typedef ::com::sun::star::uno::Sequence< ::sal_Int8 > Int8Sequence; typedef ::com::sun::star::uno::Sequence< ::sal_Int8 > Int8Sequence;
typedef ::com::sun::star::uno::Sequence< ::sal_Int32 > Int32Sequence; typedef ::com::sun::star::uno::Sequence< ::sal_Int32 > Int32Sequence;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
*/ */
#include <sax/fshelper.hxx> #include <sax/fshelper.hxx>
#include <fastserializer.hxx> #include "fastserializer.hxx"
#include <com/sun/star/xml/sax/XFastTokenHandler.hpp> #include <com/sun/star/xml/sax/XFastTokenHandler.hpp>
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment