diff options
author | Noel Grandin <noel@peralex.com> | 2014-05-12 12:06:29 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-05-13 12:00:27 +0200 |
commit | ffa2229a8ebf3b42f6327589814063fc39db7118 (patch) | |
tree | 0f3abaaaa143a0f8b784ad0a80f64207e3e10bc2 /sdext | |
parent | fd4c3670dc509f3e10132106475c3dc414f91412 (diff) |
remove dead code
Change-Id: Ic4fb478921714429af138ca212bd7f67f408d434
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/minimizer/configurationaccess.cxx | 22 | ||||
-rw-r--r-- | sdext/source/minimizer/configurationaccess.hxx | 1 |
2 files changed, 0 insertions, 23 deletions
diff --git a/sdext/source/minimizer/configurationaccess.cxx b/sdext/source/minimizer/configurationaccess.cxx index 699d5f68fd02..51653121e697 100644 --- a/sdext/source/minimizer/configurationaccess.cxx +++ b/sdext/source/minimizer/configurationaccess.cxx @@ -162,28 +162,6 @@ ConfigurationAccess::~ConfigurationAccess() { } -OUString ConfigurationAccess::getPath( OUString const & token ) -{ - OUString aPath; - try - { - static const OUString sProtocol( "vnd.sun.star.expand:" ); - Reference< container::XNameAccess > xSet( OpenConfiguration( true ), UNO_QUERY_THROW ); - if ( xSet->hasByName( token ) ) - xSet->getByName( token ) >>= aPath; - if ( aPath.match( sProtocol, 0 ) ) - { - OUString aTmp( aPath.copy( 20 ) ); - Reference< util::XMacroExpander > xExpander = util::theMacroExpander::get(mxContext); - aPath = xExpander->expandMacros( aTmp ); - } - } - catch (const Exception&) - { - } - return aPath; -} - OUString ConfigurationAccess::getString( const PPPOptimizerTokenEnum eToken ) const { std::map< PPPOptimizerTokenEnum, OUString, Compare >::const_iterator aIter( maStrings.find( eToken ) ); diff --git a/sdext/source/minimizer/configurationaccess.hxx b/sdext/source/minimizer/configurationaccess.hxx index 70e828138b26..3a186bad0f53 100644 --- a/sdext/source/minimizer/configurationaccess.hxx +++ b/sdext/source/minimizer/configurationaccess.hxx @@ -87,7 +87,6 @@ class ConfigurationAccess ~ConfigurationAccess(); void SaveConfiguration(); - OUString getPath( OUString const & token ); OUString getString( const PPPOptimizerTokenEnum ) const; // access to current OptimizerSettings (stored in the first entry of maSettings) |