diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-20 12:51:08 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-21 06:50:30 +0000 |
commit | 82b896f1f85b510eb72bb6d2f97d29defe1edf8b (patch) | |
tree | 758ff2379a5c99cc770d6b716e9c7e1c11e5ebcb /sc | |
parent | ab777c9cecc7377a7bdb0cda2eb26412021c7a73 (diff) |
loplugin:unusedmethods formula
Change-Id: I62ff278679638dda7e10c86c49b1966641418e8b
Reviewed-on: https://gerrit.libreoffice.org/17223
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/funcdesc.hxx | 11 | ||||
-rw-r--r-- | sc/source/core/data/funcdesc.cxx | 12 |
2 files changed, 3 insertions, 20 deletions
diff --git a/sc/inc/funcdesc.hxx b/sc/inc/funcdesc.hxx index 43e4101c59b7..2410de3751a6 100644 --- a/sc/inc/funcdesc.hxx +++ b/sc/inc/funcdesc.hxx @@ -253,15 +253,14 @@ private: class ScFunctionCategory : public formula::IFunctionCategory { public: - ScFunctionCategory(ScFunctionMgr* _pMgr,::std::vector<const ScFuncDesc*>* _pCategory,sal_uInt32 _nCategory) - : m_pMgr(_pMgr),m_pCategory(_pCategory),m_nCategory(_nCategory){} + ScFunctionCategory(::std::vector<const ScFuncDesc*>* _pCategory,sal_uInt32 _nCategory) + : m_pCategory(_pCategory),m_nCategory(_nCategory){} virtual ~ScFunctionCategory(){} /** @return count of functions in this category */ virtual sal_uInt32 getCount() const SAL_OVERRIDE; - virtual const formula::IFunctionManager* getFunctionManager() const SAL_OVERRIDE; /** Gives the _nPos'th function in this category. @@ -280,7 +279,6 @@ public: virtual OUString getName() const SAL_OVERRIDE; private: - ScFunctionMgr* m_pMgr; /**< function manager for this category */ ::std::vector<const ScFuncDesc*>* m_pCategory; /**< list of functions in this category */ mutable OUString m_sName; /**< name of this category */ sal_uInt32 m_nCategory; /**< index number of this category */ @@ -382,11 +380,6 @@ public: virtual void fillLastRecentlyUsedFunctions(::std::vector< const formula::IFunctionDescription*>& _rLastRUFunctions) const SAL_OVERRIDE; /** - Implemented because of inheritance \see ScFunctionMgr::Get(const OUString&) const - */ - virtual const formula::IFunctionDescription* getFunctionByName(const OUString& _sFunctionName) const SAL_OVERRIDE; - - /** Maps Etoken to character Used for retrieving characters for parantheses and separators. diff --git a/sc/source/core/data/funcdesc.cxx b/sc/source/core/data/funcdesc.cxx index d9d026685c20..f464205d0afb 100644 --- a/sc/source/core/data/funcdesc.cxx +++ b/sc/source/core/data/funcdesc.cxx @@ -614,11 +614,6 @@ sal_uInt32 ScFunctionCategory::getCount() const return m_pCategory->size(); } -const formula::IFunctionManager* ScFunctionCategory::getFunctionManager() const -{ - return m_pMgr; -} - OUString ScFunctionCategory::getName() const { if ( m_sName.isEmpty() ) @@ -755,17 +750,12 @@ const formula::IFunctionCategory* ScFunctionMgr::getCategory(sal_uInt32 nCategor if ( nCategory < (MAX_FUNCCAT-1) ) { if (m_aCategories.find(nCategory) == m_aCategories.end()) - m_aCategories[nCategory].reset(new ScFunctionCategory(const_cast<ScFunctionMgr*>(this),aCatLists[nCategory+1],nCategory)); // aCatLists[0] is "all" + m_aCategories[nCategory].reset(new ScFunctionCategory(aCatLists[nCategory+1],nCategory)); // aCatLists[0] is "all" return m_aCategories[nCategory].get(); } return NULL; } -const formula::IFunctionDescription* ScFunctionMgr::getFunctionByName(const OUString& _sFunctionName) const -{ - return Get(_sFunctionName); -} - void ScFunctionMgr::fillLastRecentlyUsedFunctions(::std::vector< const formula::IFunctionDescription*>& _rLastRUFunctions) const { const ScAppOptions& rAppOpt = SC_MOD()->GetAppOptions(); |