summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2011-12-19 21:56:10 -0500
committerAugust Sodora <augsod@gmail.com>2011-12-19 23:11:29 -0500
commitb0e993d42e1df8c68c4c2684ab9dda27a1329594 (patch)
tree1c794b14a3474c65e3c2e5737261d4e0aa33df13
parentf94db3d01631e75750431a87215338bf182f7c61 (diff)
callcatcher: Remove unused code
-rw-r--r--writerfilter/inc/resourcemodel/TagLogger.hxx5
-rw-r--r--writerfilter/source/resourcemodel/TagLogger.cxx53
2 files changed, 0 insertions, 58 deletions
diff --git a/writerfilter/inc/resourcemodel/TagLogger.hxx b/writerfilter/inc/resourcemodel/TagLogger.hxx
index d45637c5524d..2a13487ab835 100644
--- a/writerfilter/inc/resourcemodel/TagLogger.hxx
+++ b/writerfilter/inc/resourcemodel/TagLogger.hxx
@@ -73,14 +73,9 @@ namespace writerfilter
void element(const std::string & name);
void unoPropertySet(uno::Reference<beans::XPropertySet> rPropSet);
#endif
- void startElement(const std::string & name);
void attribute(const std::string & name, const std::string & value);
void attribute(const std::string & name, const ::rtl::OUString & value);
- void attribute(const std::string & name, sal_uInt32 value);
- void attribute(const std::string & name, const uno::Any aAny);
void chars(const std::string & chars);
- void chars(const ::rtl::OUString & chars);
- void endElement();
#ifdef DEBUG_CONTEXT_HANDLER
void propertySet(writerfilter::Reference<Properties>::Pointer_t props,
diff --git a/writerfilter/source/resourcemodel/TagLogger.cxx b/writerfilter/source/resourcemodel/TagLogger.cxx
index 7b63ce045d4d..6a0795cb4d5b 100644
--- a/writerfilter/source/resourcemodel/TagLogger.cxx
+++ b/writerfilter/source/resourcemodel/TagLogger.cxx
@@ -156,13 +156,6 @@ namespace writerfilter
#endif
- void TagLogger::startElement(const string & name)
- {
- xmlChar* xmlName = xmlCharStrdup( name.c_str() );
- xmlTextWriterStartElement( pWriter, xmlName );
- xmlFree( xmlName );
- }
-
void TagLogger::attribute(const string & name, const string & value)
{
xmlChar* xmlName = xmlCharStrdup( name.c_str() );
@@ -178,42 +171,6 @@ namespace writerfilter
attribute( name, OUStringToOString( value, RTL_TEXTENCODING_ASCII_US ).getStr() );
}
- void TagLogger::attribute(const string & name, sal_uInt32 value)
- {
- xmlChar* xmlName = xmlCharStrdup( name.c_str() );
- xmlTextWriterWriteFormatAttribute( pWriter, xmlName,
- "%" SAL_PRIuUINT32, value );
- xmlFree( xmlName );
- }
-
- void TagLogger::attribute(const string & name, const uno::Any aAny)
- {
- string aTmpStrInt;
- string aTmpStrFloat;
- string aTmpStrString;
-
- sal_Int32 nInt = 0;
- float nFloat = 0.0;
- ::rtl::OUString aStr;
-
- xmlChar* xmlName = xmlCharStrdup( name.c_str() );
- if ( aAny >>= nInt )
- {
- xmlTextWriterWriteFormatAttribute( pWriter, xmlName,
- "%" SAL_PRIdINT32, nInt );
- }
- else if ( aAny >>= nFloat )
- {
- xmlTextWriterWriteFormatAttribute( pWriter, xmlName,
- "%f", nFloat );
- }
- else if ( aAny >>= aStr )
- {
- attribute( name, aStr );
- }
- xmlFree( xmlName );
- }
-
void TagLogger::chars(const string & rChars)
{
xmlChar* xmlChars = xmlCharStrdup( rChars.c_str() );
@@ -221,16 +178,6 @@ namespace writerfilter
xmlFree( xmlChars );
}
- void TagLogger::chars(const ::rtl::OUString & rChars)
- {
- chars(OUStringToOString(rChars, RTL_TEXTENCODING_ASCII_US).getStr());
- }
-
- void TagLogger::endElement()
- {
- xmlTextWriterEndElement( pWriter );
- }
-
#ifdef DEBUG_CONTEXT_HANDLER
class PropertySetDumpHandler : public Properties
{