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 /reportdesign | |
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 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/inc/FunctionHelper.hxx | 6 | ||||
-rw-r--r-- | reportdesign/source/ui/misc/FunctionHelper.cxx | 18 |
2 files changed, 2 insertions, 22 deletions
diff --git a/reportdesign/source/ui/inc/FunctionHelper.hxx b/reportdesign/source/ui/inc/FunctionHelper.hxx index bf384f0a0798..042e0a941c9c 100644 --- a/reportdesign/source/ui/inc/FunctionHelper.hxx +++ b/reportdesign/source/ui/inc/FunctionHelper.hxx @@ -48,8 +48,7 @@ public: virtual sal_uInt32 getCount() const SAL_OVERRIDE; virtual const formula::IFunctionCategory* getCategory(sal_uInt32 nPos) const SAL_OVERRIDE; virtual void fillLastRecentlyUsedFunctions(::std::vector< const formula::IFunctionDescription*>& _rLastRUFunctions) const SAL_OVERRIDE; - virtual const formula::IFunctionDescription* getFunctionByName(const OUString& _sFunctionName) const SAL_OVERRIDE; - virtual sal_Unicode getSingleToken(const EToken _eToken) const SAL_OVERRIDE; + virtual sal_Unicode getSingleToken(const EToken _eToken) const SAL_OVERRIDE; ::boost::shared_ptr< FunctionDescription > get(const ::com::sun::star::uno::Reference< ::com::sun::star::report::meta::XFunctionDescription>& _xFunctionDescription) const; }; @@ -92,8 +91,7 @@ public: virtual sal_uInt32 getCount() const SAL_OVERRIDE; virtual const formula::IFunctionDescription* getFunction(sal_uInt32 _nPos) const SAL_OVERRIDE; virtual sal_uInt32 getNumber() const SAL_OVERRIDE; - virtual const formula::IFunctionManager* getFunctionManager() const SAL_OVERRIDE; - virtual OUString getName() const SAL_OVERRIDE; + virtual OUString getName() const SAL_OVERRIDE; }; } // rptui diff --git a/reportdesign/source/ui/misc/FunctionHelper.cxx b/reportdesign/source/ui/misc/FunctionHelper.cxx index 2ce316af93a0..925fa01102fa 100644 --- a/reportdesign/source/ui/misc/FunctionHelper.cxx +++ b/reportdesign/source/ui/misc/FunctionHelper.cxx @@ -68,19 +68,6 @@ const formula::IFunctionCategory* FunctionManager::getCategory(sal_uInt32 _nPos) return m_aCategoryIndex[_nPos]->second.get(); } -const formula::IFunctionDescription* FunctionManager::getFunctionByName(const OUString& _sFunctionName) const -{ - const formula::IFunctionDescription* pDesc = NULL; - try - { - pDesc = get(m_xMgr->getFunctionByName(_sFunctionName)).get(); - } - catch(uno::Exception&) - { - } - return pDesc; -} - void FunctionManager::fillLastRecentlyUsedFunctions(::std::vector< const formula::IFunctionDescription*>& /*_rLastRUFunctions*/) const { } @@ -138,11 +125,6 @@ sal_uInt32 FunctionCategory::getNumber() const return m_nNumber; } -const formula::IFunctionManager* FunctionCategory::getFunctionManager() const -{ - return m_pFunctionManager; -} - OUString FunctionCategory::getName() const { return m_xCategory->getName(); |