From 3e4b0bde6252b80ccc99c8b9ae261d79456ba026 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 24 Jul 2017 09:05:18 +0200 Subject: loplugin:unusedfields some untouched fields which lead to a whole bunch of dead code in vcl/.../i18n_status.cxx Change-Id: Id8eeadeb9cbc6107e1a0dac5801ce20b2b9ae6dc Reviewed-on: https://gerrit.libreoffice.org/40355 Tested-by: Jenkins Reviewed-by: Noel Grandin --- l10ntools/inc/export.hxx | 51 +----------------------------------------------- 1 file changed, 1 insertion(+), 50 deletions(-) (limited to 'l10ntools/inc') diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx index b412f10df2a8..cbc4819f80b9 100644 --- a/l10ntools/inc/export.hxx +++ b/l10ntools/inc/export.hxx @@ -72,28 +72,12 @@ public: ResData( const OString &rGId , const OString &rFilename ); bool SetId(const OString &rId, IdLevel nLevel); - IdLevel nIdLevel; - bool bChild; - bool bChildWithText; - - bool bText; - bool bQuickHelpText; - bool bTitle; - OString sResTyp; OString sId; OString sGId; OString sFilename; OStringHashMap sText; - - OStringHashMap sQuickHelpText; - - OStringHashMap sTitle; - - OString sTextTyp; - - ExportList m_aList; }; @@ -116,27 +100,7 @@ class ParserQueue; class Export { private: - union - { - std::ofstream* mSimple; - PoOfstream* mPo; - - } aOutput; - - ResStack aResStack; ///< stack for parsing recursive - - bool bDefine; // cur. res. in a define? - bool bNextMustBeDefineEOL; ///< define but no \ at lineend - std::size_t nLevel; // res. recursive? how deep? - ExportListType nList; ///< cur. res. is List - std::size_t nListLevel; - bool bMergeMode; - OString sMergeSrc; bool bError; // any errors while export? - bool bReadOver; - OString sFilename; - - std::vector aLanguages; ParserQueue* pParseQueue; @@ -277,13 +241,11 @@ class MergeData friend class MergeDataHashMap; public: - OString sGID; - OString sLID; std::unique_ptr pMergeEntrys; private: MergeDataHashMap::iterator m_aNextData; public: - MergeData( const OString &rGID, const OString &rLID ); + MergeData(); ~MergeData(); MergeEntrys* GetMergeEntries() { return pMergeEntrys.get();} @@ -343,21 +305,10 @@ public: ~ParserQueue(); inline void Push( const QueueEntry& aEntry ); - bool bCurrentIsM; // public ? - bool bNextIsM; // public ? - bool bLastWasM; // public ? - bool bMflag; // public ? void Close(); private: - std::queue* aQueueNext; - std::queue* aQueueCur; - - Export& aExport; - bool bStart; - inline void Pop( std::queue& aQueue ); - }; #endif // INCLUDED_L10NTOOLS_INC_EXPORT_HXX -- cgit