From cb37c5f0f3de7b545231a53d46a5271058af76ad Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 22 Jun 2017 11:38:31 +0200 Subject: loplugin:unusedfields in jvmfwk..mysqlc Change-Id: If9c7a3239fceba9a2db3a5905ccaa7fa9adadb08 Reviewed-on: https://gerrit.libreoffice.org/39099 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- linguistic/source/convdic.cxx | 4 +--- linguistic/source/convdic.hxx | 1 - linguistic/source/convdicxml.cxx | 6 +----- 3 files changed, 2 insertions(+), 9 deletions(-) (limited to 'linguistic/source') diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx index 0e952a516843..ca0304fa4480 100644 --- a/linguistic/source/convdic.cxx +++ b/linguistic/source/convdic.cxx @@ -179,12 +179,11 @@ ConvDic::ConvDic( bNeedEntries = true; bIsModified = bIsActive = false; - bIsReadonly = false; if( !rMainURL.isEmpty() ) { bool bExists = false; - bIsReadonly = IsReadOnly( rMainURL, &bExists ); + IsReadOnly( rMainURL, &bExists ); if( !bExists ) // new empty dictionary { @@ -193,7 +192,6 @@ ConvDic::ConvDic( //! that could be found by the dictionary-list implementation // (Note: empty dictionaries are not just empty files!) Save(); - bIsReadonly = IsReadOnly( rMainURL ); // will be sal_False if Save was successful } } else diff --git a/linguistic/source/convdic.hxx b/linguistic/source/convdic.hxx index 53167b7123a7..6c41586df6da 100644 --- a/linguistic/source/convdic.hxx +++ b/linguistic/source/convdic.hxx @@ -77,7 +77,6 @@ protected: bool bNeedEntries; bool bIsModified; bool bIsActive; - bool bIsReadonly; // disallow copy-constructor and assignment-operator for now ConvDic(const ConvDic &); diff --git a/linguistic/source/convdicxml.cxx b/linguistic/source/convdicxml.cxx index e5ac95339348..7829d2c891f4 100644 --- a/linguistic/source/convdicxml.cxx +++ b/linguistic/source/convdicxml.cxx @@ -125,14 +125,12 @@ class ConvDicXMLEntryTextContext_Impl : public ConvDicXMLImportContext { OUString aLeftText; - sal_Int16 nPropertyType; // used for Chinese simplified/traditional conversion public: ConvDicXMLEntryTextContext_Impl( ConvDicXMLImport &rImport, sal_uInt16 nPrefix, const OUString& rLName ) : - ConvDicXMLImportContext( rImport, nPrefix, rLName ), - nPropertyType( ConversionPropertyType::NOT_DEFINED ) + ConvDicXMLImportContext( rImport, nPrefix, rLName ) { } @@ -256,8 +254,6 @@ void ConvDicXMLEntryTextContext_Impl::StartElement( if ( nPrefix == XML_NAMESPACE_TCD && aLocalName == "left-text" ) aLeftText = aValue; - if ( nPrefix == XML_NAMESPACE_TCD && aLocalName == "property-type" ) - nPropertyType = (sal_Int16) aValue.toInt32(); } } -- cgit