summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-22 15:31:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-23 07:30:12 +0100
commitc9611c5e6465948de029e9c2fbd17e75ee07d31f (patch)
tree250e63de113ac6a8c8105cabad060068d5246d13 /l10ntools
parentd3d8618608ec0f329a40e029de951374871a8de0 (diff)
loplugin:unusedfields in l10ntools..sax
Change-Id: I6e4ff4853c3995072b020af54549dc81303a4fde Reviewed-on: https://gerrit.libreoffice.org/68225 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/inc/xmlparse.hxx5
-rw-r--r--l10ntools/source/xmlparse.cxx10
2 files changed, 0 insertions, 15 deletions
diff --git a/l10ntools/inc/xmlparse.hxx b/l10ntools/inc/xmlparse.hxx
index 67b40ac2205c..a9d2893d68b3 100644
--- a/l10ntools/inc/xmlparse.hxx
+++ b/l10ntools/inc/xmlparse.hxx
@@ -206,8 +206,6 @@ class XMLElement : public XMLParentNode
private:
OString m_sElementName;
std::unique_ptr<XMLAttributeList> m_pAttributes;
- OString m_sId;
- OString m_sLanguageId;
protected:
void Print(XMLNode *pCur, OStringBuffer& rBuffer, bool bRootelement) const;
@@ -237,9 +235,6 @@ public:
/// Return a Unicode String representation of this object
OString ToOString();
-
- void SetId ( OString const & sTheId ) { m_sId = sTheId; }
- void SetLanguageId ( OString const & sLangId ) { m_sLanguageId = sLangId; }
};
/** Holds character data
diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx
index 369d8e6e1562..b6df209ed896 100644
--- a/l10ntools/source/xmlparse.cxx
+++ b/l10ntools/source/xmlparse.cxx
@@ -472,8 +472,6 @@ void XMLFile::SearchL10NElements( XMLChildNode *pCur )
sLanguage=(*pElement->GetAttributeList())[ j ]->GetValue();
}
}
- pElement->SetLanguageId( sLanguage );
- pElement->SetId( sTmpStrVal );
}
if ( bInsert && ( m_aNodes_localize.find( sName ) != m_aNodes_localize.end() ) )
@@ -555,16 +553,12 @@ XMLElement::XMLElement(
)
: XMLParentNode( pParent )
, m_sElementName( rName )
- , m_sId(OString())
- , m_sLanguageId(OString())
{
}
XMLElement::XMLElement(const XMLElement& rObj)
: XMLParentNode( rObj )
, m_sElementName( rObj.m_sElementName )
- , m_sId( rObj.m_sId )
- , m_sLanguageId( rObj.m_sLanguageId )
{
if ( rObj.m_pAttributes )
{
@@ -580,8 +574,6 @@ XMLElement& XMLElement::operator=(const XMLElement& rObj)
{
XMLParentNode::operator=(rObj);
m_sElementName = rObj.m_sElementName;
- m_sId = rObj.m_sId;
- m_sLanguageId = rObj.m_sLanguageId;
if ( m_pAttributes )
{
@@ -608,7 +600,6 @@ void XMLElement::AddAttribute( const OString &rAttribute, const OString &rValue
void XMLElement::ChangeLanguageTag( const OString &rValue )
{
- SetLanguageId(rValue);
if ( m_pAttributes )
{
bool bWasSet = false;
@@ -635,7 +626,6 @@ void XMLElement::ChangeLanguageTag( const OString &rValue )
{
XMLElement* pElem = static_cast< XMLElement* >(pNode);
pElem->ChangeLanguageTag( rValue );
- pElem->SetLanguageId(rValue);
pElem = nullptr;
pNode = nullptr;
}