From effda59a12cedd3cf200d2e9f5186a623b0855bb Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 27 Mar 2012 23:26:27 +0100 Subject: callcatcher: regenerate list --- l10ntools/inc/xmlparse.hxx | 8 -------- l10ntools/source/xmlparse.cxx | 28 ---------------------------- 2 files changed, 36 deletions(-) (limited to 'l10ntools') diff --git a/l10ntools/inc/xmlparse.hxx b/l10ntools/inc/xmlparse.hxx index 0731a9f453e8..eeb86193c0e5 100644 --- a/l10ntools/inc/xmlparse.hxx +++ b/l10ntools/inc/xmlparse.hxx @@ -303,18 +303,10 @@ public: void AddAttribute( const rtl::OUString &rAttribute, const rtl::OUString &rValue ); void ChangeLanguageTag( const rtl::OUString &rValue ); - // Return a ASCII String representation of this object - OString ToOString(); // Return a Unicode String representation of this object OUString ToOUString(); - bool Equals(OUString refStr); - - /// returns a attribute - XMLAttribute *GetAttribute( - const rtl::OUString &rName // the attribute name - ); void SetProject ( rtl::OString const & prj ){ project = prj; } void SetFileName ( rtl::OString const & fn ){ filename = fn; } void SetId ( rtl::OString const & theId ){ id = theId; } diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx index 5be1f0e66e21..31a75540130a 100644 --- a/l10ntools/source/xmlparse.cxx +++ b/l10ntools/source/xmlparse.cxx @@ -692,17 +692,6 @@ void XMLElement::ChangeLanguageTag( const rtl::OUString &rValue ) pCList = NULL; } } -/*****************************************************************************/ -XMLAttribute *XMLElement::GetAttribute( const rtl::OUString &rName ) -/*****************************************************************************/ -{ - if ( pAttributes ) - for ( size_t i = 0; i < pAttributes->size(); i++ ) - if ( (*pAttributes)[ i ]->GetName() == rName ) - return (*pAttributes)[ i ]; - - return NULL; -} /*****************************************************************************/ XMLElement::~XMLElement() @@ -716,24 +705,7 @@ XMLElement::~XMLElement() pAttributes = NULL; } } -/*****************************************************************************/ -bool XMLElement::Equals(OUString refStr){ -/*****************************************************************************/ - return refStr.equals( ToOUString() ); -} -/*****************************************************************************/ -OString XMLElement::ToOString(){ -/*****************************************************************************/ - OUString ouEmpty; - - OUStringBuffer* buffer = new OUStringBuffer(); - Print( this, *buffer , true ); - - OString result( (sal_Unicode* )buffer->getStr(), buffer->getLength() , RTL_TEXTENCODING_UTF8 ); - delete buffer; - return result; -} /*****************************************************************************/ OUString XMLElement::ToOUString(){ /*****************************************************************************/ -- cgit