From 9ffdf7adc00d8e9d931184d3008f4e505e4a5024 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 16 May 2018 10:05:56 +0200 Subject: loplugin:unusedfields in tools..xmlhelp Change-Id: I5e909a8def86ce9ad150440e6c6ad304e855cc69 Reviewed-on: https://gerrit.libreoffice.org/54415 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unotools/source/config/extendedsecurityoptions.cxx | 49 ---------------------- 1 file changed, 49 deletions(-) (limited to 'unotools/source/config/extendedsecurityoptions.cxx') diff --git a/unotools/source/config/extendedsecurityoptions.cxx b/unotools/source/config/extendedsecurityoptions.cxx index 2a9f138ca491..18cc0b9547ef 100644 --- a/unotools/source/config/extendedsecurityoptions.cxx +++ b/unotools/source/config/extendedsecurityoptions.cxx @@ -86,19 +86,10 @@ class SvtExtendedSecurityOptions_Impl : public ConfigItem static Sequence< OUString > GetPropertyNames(); - /*-**************************************************************************************************** - @short Fills the hash map with all extensions known to be secure - @descr This method fills the given hash map object with all extensions known to be secure. - @param aHashMap - A hash map to be filled with secure extension strings. - *//*-*****************************************************************************************************/ - void FillExtensionHashMap( ExtensionHashMap& aHashMap ); - OUString m_aSecureExtensionsSetName; OUString m_aExtensionPropName; SvtExtendedSecurityOptions::OpenHyperlinkMode m_eOpenHyperlinkMode; - ExtensionHashMap m_aExtensionHashMap; }; // constructor @@ -111,9 +102,6 @@ SvtExtendedSecurityOptions_Impl::SvtExtendedSecurityOptions_Impl() , m_eOpenHyperlinkMode(SvtExtendedSecurityOptions::OPEN_NEVER) // Init member then. { - // Fill the extension hash map with all secure extension strings - FillExtensionHashMap( m_aExtensionHashMap ); - Sequence< OUString > seqNames = GetPropertyNames(); Sequence< Any > seqValues = GetProperties( seqNames ); @@ -183,43 +171,6 @@ void SvtExtendedSecurityOptions_Impl::ImplCommit() PutProperties( seqNames, seqValues ); } -// public method - - -// private method - -void SvtExtendedSecurityOptions_Impl::FillExtensionHashMap( ExtensionHashMap& aHashMap ) -{ - // Get sequence with secure extensions from configuration - Sequence< OUString > seqNodes = GetNodeNames( m_aSecureExtensionsSetName ); - - OUString aValue; - Sequence< Any > aValues; - Sequence< OUString > aPropSeq( 1 ); - for ( int i = 0; i < seqNodes.getLength(); i++ ) - { - // Create access name for property - OUStringBuffer aExtEntryProp( m_aSecureExtensionsSetName ); - aExtEntryProp.append( "/" ); - aExtEntryProp.append( seqNodes[i] ); - aExtEntryProp.append( m_aExtensionPropName ); - - aPropSeq[0] = aExtEntryProp.makeStringAndClear(); - aValues = GetProperties( aPropSeq ); - if ( aValues.getLength() == 1 ) - { - // Don't use value if sequence has not the correct length - if ( aValues[0] >>= aValue ) - // Add extension into secure extensions hash map - aHashMap.emplace( aValue.toAsciiLowerCase(), 1 ); - else - { - SAL_WARN( "unotools.config", "SvtExtendedSecurityOptions_Impl::FillExtensionHashMap(): not string value?" ); - } - } - } -} - // private method (currently not used) Sequence< OUString > SvtExtendedSecurityOptions_Impl::GetPropertyNames() -- cgit