diff options
author | Alexander Bergmann <myaddons@gmx.de> | 2012-01-16 12:26:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-16 22:46:57 +0000 |
commit | 0d7e73ac445d2e3fc8ed5ff2d6cf289d2b367a56 (patch) | |
tree | 7661c1502b061a9585be551e848076bdac4f6a5c /sax | |
parent | typo (diff) | |
download | core-0d7e73ac445d2e3fc8ed5ff2d6cf289d2b367a56.tar.gz core-0d7e73ac445d2e3fc8ed5ff2d6cf289d2b367a56.zip |
Removing unused code
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/fshelper.cxx | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/sax/source/tools/fshelper.cxx b/sax/source/tools/fshelper.cxx index 89c2b1a45f59..6cdd39d46f4e 100644 --- a/sax/source/tools/fshelper.cxx +++ b/sax/source/tools/fshelper.cxx @@ -29,49 +29,6 @@ FastSerializerHelper::~FastSerializerHelper() delete mpSerializer; } -void FastSerializerHelper::startElement(const char* elementName, ...) -{ - FastAttributeList* pAttrList = new FastAttributeList( mxTokenHandler ); - va_list args; - va_start(args, elementName); - while (true) - { - const char* pName = va_arg(args, const char*); - if (!pName) - break; - const char* pValue = va_arg(args, const char*); - if (pValue) - pAttrList->addUnknown(pName, pValue); - } - va_end(args); - const com::sun::star::uno::Reference<com::sun::star::xml::sax::XFastAttributeList> xAttrList(pAttrList); - mpSerializer->startUnknownElement(::rtl::OUString(), ::rtl::OUString::createFromAscii(elementName), xAttrList); -} - -void FastSerializerHelper::singleElement(const char* elementName, ...) -{ - FastAttributeList* pAttrList = new FastAttributeList( mxTokenHandler ); - va_list args; - va_start(args, elementName); - while (true) - { - const char* pName = va_arg(args, const char*); - if (!pName) - break; - const char* pValue = va_arg(args, const char*); - if (pValue) - pAttrList->addUnknown(pName, pValue); - } - va_end(args); - const com::sun::star::uno::Reference<com::sun::star::xml::sax::XFastAttributeList> xAttrList(pAttrList); - mpSerializer->singleUnknownElement(::rtl::OUString(), ::rtl::OUString::createFromAscii(elementName), xAttrList); -} - -void FastSerializerHelper::endElement(const char* elementName) -{ - mpSerializer->endUnknownElement(::rtl::OUString(), ::rtl::OUString::createFromAscii(elementName)); -} - void FastSerializerHelper::startElementV(sal_Int32 elementTokenId, va_list args) { FastAttributeList* pAttrList = new FastAttributeList( mxTokenHandler ); @@ -119,11 +76,6 @@ void FastSerializerHelper::startElementV(sal_Int32 elementTokenId, XFastAttribut } -void FastSerializerHelper::singleElement(const char* elementName, XFastAttributeListRef xAttrList) -{ - mpSerializer->singleUnknownElement(::rtl::OUString(), ::rtl::OUString::createFromAscii(elementName), xAttrList); -} - void FastSerializerHelper::singleElementV(sal_Int32 elementTokenId, XFastAttributeListRef xAttrList) { mpSerializer->singleFastElement(elementTokenId, xAttrList); |