diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-16 10:05:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-17 08:39:51 +0200 |
commit | 9ffdf7adc00d8e9d931184d3008f4e505e4a5024 (patch) | |
tree | 8b75090145b4218578e42461693fd73d66edb3b0 /unotools | |
parent | ae39b1ef2dcc9ef7784ff002dd10318564931c2b (diff) |
loplugin:unusedfields in tools..xmlhelp
Change-Id: I5e909a8def86ce9ad150440e6c6ad304e855cc69
Reviewed-on: https://gerrit.libreoffice.org/54415
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/extendedsecurityoptions.cxx | 49 |
1 files changed, 0 insertions, 49 deletions
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() |