writerfilter: remove dead WW8DocumentFactory

Change-Id: I9896c3b221d2ec4766b9ee63aadc90bff9c33ea6
This commit is contained in:
Miklos Vajna 2013-09-25 09:53:51 +02:00 committed by Miklos Vajna
parent a107908e7e
commit a5097b664a
3 changed files with 0 additions and 31 deletions

View file

@ -416,17 +416,6 @@ public:
virtual WW8DocumentIterator::Pointer_t end() = 0;
};
class WRITERFILTER_DOCTOK_DLLPUBLIC WW8DocumentFactory
{
public:
static WW8Stream::Pointer_t
createStream(uno::Reference<uno::XComponentContext> rContext,
uno::Reference<io::XInputStream> rStream);
static WW8Document *
createDocument(WW8Stream::Pointer_t rpStream);
};
}}
#endif // INCLUDED_WW8_DOCUMENT_HXX

View file

@ -1776,19 +1776,6 @@ void WW8DocumentImpl::resolve(Stream & rStream)
}
WW8Stream::Pointer_t
WW8DocumentFactory::createStream(uno::Reference<uno::XComponentContext> rContext,
uno::Reference<io::XInputStream> rStream)
{
return WW8Stream::Pointer_t(new WW8StreamImpl(rContext, rStream));
}
WW8Document *
WW8DocumentFactory::createDocument(WW8Stream::Pointer_t rpStream)
{
return new WW8DocumentImpl(rpStream);
}
writerfilter::Reference<Properties>::Pointer_t
WW8SED::get_sepx()
{

View file

@ -167,13 +167,6 @@ sal_Bool WriterFilter::filter( const uno::Sequence< beans::PropertyValue >& aDes
aVbaProject.importVbaProject( *xVbaPrjStrg, gHelper );
}
}
else
{
writerfilter::doctok::WW8Stream::Pointer_t pDocStream = writerfilter::doctok::WW8DocumentFactory::createStream(m_xContext, xInputStream);
writerfilter::doctok::WW8Document::Pointer_t pDocument(writerfilter::doctok::WW8DocumentFactory::createDocument(pDocStream));
pDocument->resolve(*pStream);
}
pStream.reset();
#ifdef DEBUG_IMPORT