diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-28 08:39:57 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-30 06:23:00 +0000 |
commit | a45827b2308febc7369db27fb489a6d1389534e1 (patch) | |
tree | 0b697341738010da35bd0a6a6189ef6761e5db0a /l10ntools | |
parent | 2387c2a46e15995686d28dccdfd455012072b4cf (diff) |
loplugin:unusedmethods
Change-Id: Ib4d77ee01e7362f5951f81fceeca3c489872d971
Reviewed-on: https://gerrit.libreoffice.org/17378
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/inc/export.hxx | 2 | ||||
-rw-r--r-- | l10ntools/inc/xmlparse.hxx | 19 | ||||
-rw-r--r-- | l10ntools/inc/xrmmerge.hxx | 1 | ||||
-rw-r--r-- | l10ntools/source/helpmerge.cxx | 2 |
4 files changed, 3 insertions, 21 deletions
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx index b868c7a546ad..9badf8b9ad3f 100644 --- a/l10ntools/inc/export.hxx +++ b/l10ntools/inc/export.hxx @@ -148,8 +148,6 @@ private: bool WriteData( ResData *pResData, bool bCreateNew = false ); ///< called before dest. cur ResData bool WriteExportList( ResData *pResData, ExportList& rExportList, const sal_uInt16 nTyp ); - OString MergePairedList( OString const & sLine , OString const & sText ); - OString FullId(); ///< creates cur. GID static OString GetPairedListID(const OString & rText); diff --git a/l10ntools/inc/xmlparse.hxx b/l10ntools/inc/xmlparse.hxx index ab3f0e26e9e1..69ee3f9317ca 100644 --- a/l10ntools/inc/xmlparse.hxx +++ b/l10ntools/inc/xmlparse.hxx @@ -240,23 +240,12 @@ public: /// Return a Unicode String representation of this object OString ToOString(); - void SetProject ( OString const & sPrj ) { m_sProject = sPrj; } - void SetFileName ( OString const & sFileName ) { m_sFilename = sFileName; } void SetId ( OString const & sTheId ) { m_sId = sTheId; } - void SetResourceType ( OString const & sResType ) { m_sResourceType = sResType; } void SetLanguageId ( OString const & sLangId ) { m_sLanguageId = sLangId; } void SetPos ( int nPos ) { m_nPos = nPos; } void SetOldRef ( OString const & sOldRef ) { m_sOldRef = sOldRef; } - int GetPos() { return m_nPos; } - OString GetProject() const { return m_sProject; } - OString GetFileName() const { return m_sFilename; } - OString GetId() const { return m_sId; } OString GetOldref() const { return m_sOldRef; } - OString GetResourceType() const { return m_sResourceType; } - OString GetLanguageId() const { return m_sLanguageId; } - - }; /** Holds character data @@ -265,16 +254,14 @@ class XMLData : public XMLChildNode { private: OString m_sData; - bool m_bIsNewCreated; public: /// create a data node XMLData( const OString &rData, // the initial data - XMLParentNode *pParent, // the parent node of this data, typically a element node - bool bNewCreated = false + XMLParentNode *pParent // the parent node of this data, typically a element node ) - : XMLChildNode( pParent ), m_sData( rData ), m_bIsNewCreated( bNewCreated ){} + : XMLChildNode( pParent ), m_sData( rData ) {} // Default copy constructor and copy operator work well. @@ -283,8 +270,6 @@ public: /// returns the data OString GetData() const { return m_sData; } - bool isNew() const { return m_bIsNewCreated; } - /// adds new character data to the existing one void AddData( const OString &rData ) { m_sData += rData; } }; diff --git a/l10ntools/inc/xrmmerge.hxx b/l10ntools/inc/xrmmerge.hxx index 13fb191e3a00..9138369f71ea 100644 --- a/l10ntools/inc/xrmmerge.hxx +++ b/l10ntools/inc/xrmmerge.hxx @@ -57,7 +57,6 @@ protected: )=0; OString GetGID() { return sGID; } - OString GetLID() { return sLID; } public: XRMResParser(); diff --git a/l10ntools/source/helpmerge.cxx b/l10ntools/source/helpmerge.cxx index dd31a3a04d52..6567538ef1d1 100644 --- a/l10ntools/source/helpmerge.cxx +++ b/l10ntools/source/helpmerge.cxx @@ -252,7 +252,7 @@ void HelpParser::ProcessHelp( LangHashMap* aLangHM , const OString& sCur , ResDa { if( pXMLElement != NULL ) { - XMLData *data = new XMLData( sNewdata , NULL , true ); // Add new one + XMLData *data = new XMLData( sNewdata , NULL ); // Add new one pXMLElement->RemoveAndDeleteAllChildren(); pXMLElement->AddChild( data ); aLangHM->erase( sCur ); |