From 2fffaf6f05d829e345ad8b391646a6e8df9a9a26 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 25 Jul 2017 11:03:15 +0200 Subject: loplugin:unusedmethods Change-Id: Ia874baf21257e5fe41e104211068a2bcc50446eb Reviewed-on: https://gerrit.libreoffice.org/40391 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- l10ntools/inc/export.hxx | 74 ------------------------------------------------ 1 file changed, 74 deletions(-) (limited to 'l10ntools/inc') diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx index cbc4819f80b9..8127305423c7 100644 --- a/l10ntools/inc/export.hxx +++ b/l10ntools/inc/export.hxx @@ -70,7 +70,6 @@ class ResData public: ResData( const OString &rGId ); ResData( const OString &rGId , const OString &rFilename ); - bool SetId(const OString &rId, IdLevel nLevel); OString sResTyp; OString sId; @@ -96,51 +95,6 @@ enum class StringType { typedef ::std::vector< ResData* > ResStack; class ParserQueue; -/// Purpose: syntax check and export of *.src, called from lexer -class Export -{ -private: - bool bError; // any errors while export? - - ParserQueue* pParseQueue; - - void WriteData( ResData *pResData, bool bCreateNew = false ); ///< called before dest. cur ResData - void WriteExportList( ResData *pResData, ExportList& rExportList, const ExportListType nTyp ); - - OString FullId(); ///< creates cur. GID - - static OString GetPairedListID(const OString & rText); - static OString GetPairedListString(const OString& rText); - static OString StripList(const OString& rText); - - void InsertListEntry(const OString &rLine); - static void CleanValue( OString &rValue ); - static OString GetText(const OString &rSource, int nToken); - - void ResData2Output( MergeEntrys *pEntry, StringType nType, const OString& rTextType ); - void MergeRest( ResData *pResData ); - static void ConvertMergeContent( OString &rText ); - static void ConvertExportContent( OString &rText ); - - void WriteToMerged(const OString &rText , bool bSDFContent); - void SetChildWithText(); - - static void CutComment( OString &rText ); - -public: - Export( const OString &rOutput ); - Export(const OString &rMergeSource, const OString &rOutput, bool bUTF8BOM); - ~Export(); - - void Init(); - void Execute( int nToken, const char * pToken ); ///< called from lexer - - void SetError() { bError = true; } - bool GetError() { return bError; } - ParserQueue* GetParseQueue() { return pParseQueue; } -}; - - // class MergeEntrys @@ -220,9 +174,6 @@ class MergeDataHashMap iterator begin() {return m_aHashMap.begin();} iterator end() {return m_aHashMap.end();} - const_iterator begin() const {return m_aHashMap.begin();} - const_iterator end() const {return m_aHashMap.end();} - private: bool bFirstSearch; HashMap_t m_aHashMap; @@ -276,7 +227,6 @@ class MergeDataFile std::vector GetLanguages() const; - const MergeDataHashMap& getMap() const { return aMap; } MergeEntrys *GetMergeEntrys( ResData *pResData ); MergeEntrys *GetMergeEntrysCaseSensitive( ResData *pResData ); @@ -286,30 +236,6 @@ class MergeDataFile }; -class QueueEntry -{ -public: - QueueEntry(int nTypVal, const OString &rLineVal) - : nTyp(nTypVal), sLine(rLineVal) - { - } - int nTyp; - OString sLine; -}; - -class ParserQueue -{ -public: - - ParserQueue( Export& aExportObj ); - ~ParserQueue(); - - inline void Push( const QueueEntry& aEntry ); - - void Close(); -private: - inline void Pop( std::queue& aQueue ); -}; #endif // INCLUDED_L10NTOOLS_INC_EXPORT_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit