From ea1839853fbdc49ead92a7cd465e427f4167cea2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 4 Jul 2017 11:23:59 +0200 Subject: loplugin:unusedfields in editeng Change-Id: I9806d87028a11a8103c35004c87b5098ca591409 Reviewed-on: https://gerrit.libreoffice.org/39495 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/editeng/editdata.hxx | 17 ++--------------- include/editeng/swafopt.hxx | 8 -------- 2 files changed, 2 insertions(+), 23 deletions(-) (limited to 'include') diff --git a/include/editeng/editdata.hxx b/include/editeng/editdata.hxx index 6b86c4399002..12b6bff6474d 100644 --- a/include/editeng/editdata.hxx +++ b/include/editeng/editdata.hxx @@ -223,7 +223,6 @@ struct HtmlImportInfo HtmlImportState eState; HtmlTokenId nToken; - short nTokenValue; OUString aText; @@ -249,21 +248,12 @@ struct RtfImportInfo struct ParagraphInfos { ParagraphInfos() - : nParaHeight( 0 ) - , nLines( 0 ) - , nFirstLineStartX( 0 ) - , nFirstLineOffset( 0 ) - , nFirstLineHeight( 0 ) + : nFirstLineHeight( 0 ) , nFirstLineTextHeight ( 0 ) , nFirstLineMaxAscent( 0 ) , bValid( false ) {} - sal_uInt16 nParaHeight; - sal_uInt16 nLines; - - sal_uInt16 nFirstLineStartX; - sal_uInt16 nFirstLineOffset; sal_uInt16 nFirstLineHeight; sal_uInt16 nFirstLineTextHeight; sal_uInt16 nFirstLineMaxAscent; @@ -275,7 +265,6 @@ struct EECharAttrib { const SfxPoolItem* pAttr; - sal_Int32 nPara; sal_Int32 nStart; sal_Int32 nEnd; }; @@ -344,8 +333,6 @@ enum EENotifyType struct EENotify { EENotifyType eNotificationType; - EditEngine* pEditEngine; - EditView* pEditView; sal_Int32 nParagraph; // only valid in PARAGRAPHINSERTED/EE_NOTIFY_PARAGRAPHREMOVED @@ -353,7 +340,7 @@ struct EENotify sal_Int32 nParam2; EENotify( EENotifyType eType ) - { eNotificationType = eType; pEditEngine = nullptr; pEditView = nullptr; nParagraph = EE_PARA_NOT_FOUND; nParam1 = 0; nParam2 = 0; } + { eNotificationType = eType; nParagraph = EE_PARA_NOT_FOUND; nParam1 = 0; nParam2 = 0; } }; #endif // INCLUDED_EDITENG_EDITDATA_HXX diff --git a/include/editeng/swafopt.hxx b/include/editeng/swafopt.hxx index ad295254c550..726d8a315350 100644 --- a/include/editeng/swafopt.hxx +++ b/include/editeng/swafopt.hxx @@ -78,7 +78,6 @@ struct EDITENG_DLLPUBLIC SvxSwAutoFormatFlags bool bAutoCorrect : 1; bool bCapitalStartSentence : 1; bool bCapitalStartWord : 1; - bool bChkFontAttr : 1; bool bChgUserColl : 1; bool bChgEnumNum : 1; @@ -96,7 +95,6 @@ struct EDITENG_DLLPUBLIC SvxSwAutoFormatFlags bool bSetBorder : 1; bool bCreateTable : 1; bool bReplaceStyles : 1; - bool bDummy : 1; bool bWithRedlining : 1; @@ -116,12 +114,6 @@ struct EDITENG_DLLPUBLIC SvxSwAutoFormatFlags bool bAutoCmpltKeepList : 1; - // some dummies for any new options - bool bDummy6 : 1, - bDummy7 : 1, - bDummy8 : 1 - ; - SvxSwAutoFormatFlags(); SvxSwAutoFormatFlags( const SvxSwAutoFormatFlags& rAFFlags ) { *this = rAFFlags; } SvxSwAutoFormatFlags& operator=( const SvxSwAutoFormatFlags& ); -- cgit