From 16f85dc485970f34c2abd06fb5379b426d3a83bc Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Tue, 17 Nov 2015 08:37:23 +0100 Subject: Remove unused methods Change-Id: Ia78da9dac5fb426fbb145250c4e39eb7d30c4d03 --- framework/inc/uielement/toolbarmanager.hxx | 4 ---- framework/source/uielement/toolbarmanager.cxx | 18 ------------------ 2 files changed, 22 deletions(-) diff --git a/framework/inc/uielement/toolbarmanager.hxx b/framework/inc/uielement/toolbarmanager.hxx index 65a5184c0b45..2f55097ced66 100644 --- a/framework/inc/uielement/toolbarmanager.hxx +++ b/framework/inc/uielement/toolbarmanager.hxx @@ -144,7 +144,6 @@ class ToolBarManager : public ToolbarManager_Base virtual bool MenuItemAllowed( sal_uInt16 ) const; void RemoveControllers(); - OUString RetrieveFromCommand( const OUString & aName, const OUString& aCmdURL ); sal_Int32 RetrievePropertiesFromCommand( const OUString& aCmdURL ); css::uno::Sequence< css::beans::PropertyValue > GetPropsForCommand( const OUString& rCmdURL ); void CreateControllers(); @@ -165,9 +164,6 @@ class ToolBarManager : public ToolbarManager_Base void setToolBarImage(const Image& _aImage,const CommandToInfoMap::const_iterator& _pIter); void impl_elementChanged(bool _bRemove,const css::ui::ConfigurationEvent& Event ); - static bool impl_RetrieveShortcutsFromConfiguration( const css::uno::Reference< css::ui::XAcceleratorConfiguration >& rAccelCfg, const OUString& rCommand, OUString& rShortCut ); - bool RetrieveShortcut( const OUString& rCommandURL, OUString& rShortCut ); - protected: typedef std::unordered_map< sal_uInt16, css::uno::Reference< css::frame::XStatusListener > > ToolBarControllerMap; typedef ::std::vector< css::uno::Reference< css::frame::XSubToolbarController > > SubToolBarControllerVector; diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx index 2384a097399f..76fa3319ba35 100644 --- a/framework/source/uielement/toolbarmanager.cxx +++ b/framework/source/uielement/toolbarmanager.cxx @@ -808,24 +808,6 @@ uno::Sequence< beans::PropertyValue > ToolBarManager::GetPropsForCommand( const return aPropSeq; } -OUString ToolBarManager::RetrieveFromCommand( const OUString & aName, const OUString& aCmdURL ) -{ - OUString aLabel; - Sequence< PropertyValue > aPropSeq; - - // Retrieve popup menu labels - aPropSeq = GetPropsForCommand( aCmdURL ); - for ( sal_Int32 i = 0; i < aPropSeq.getLength(); i++ ) - { - if ( aPropSeq[i].Name == aName ) - { - aPropSeq[i].Value >>= aLabel; - break; - } - } - return aLabel; -} - sal_Int32 ToolBarManager::RetrievePropertiesFromCommand( const OUString& aCmdURL ) { sal_Int32 nProperties(0); -- cgit v1.2.3