diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-30 10:29:19 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-01 10:43:24 +0000 |
commit | 58aea3f36c14414f95668e229a7350598f6c53a8 (patch) | |
tree | 70c115dffd44576313cefd49e4164d293895e4bd /reportdesign | |
parent | 3fcbfe10857631212d8b8db9a079bb9692ed78bc (diff) |
loplugin:unusedmethods
- improvements to the plugin to find more method calls
- improvements to python script to remove more false+
- fix the FORCE_COMPILE_ALL build flag to include code in
the $WORKDIR
Change-Id: I4d6015dcb9b9d60c26f0bcee8abad807177a7836
Reviewed-on: https://gerrit.libreoffice.org/19064
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/inc/ReportDefinition.hxx | 2 | ||||
-rw-r--r-- | reportdesign/inc/RptDef.hxx | 10 | ||||
-rw-r--r-- | reportdesign/source/core/api/ReportDefinition.cxx | 5 | ||||
-rw-r--r-- | reportdesign/source/core/inc/Tools.hxx | 6 | ||||
-rw-r--r-- | reportdesign/source/ui/inc/SectionWindow.hxx | 2 |
5 files changed, 0 insertions, 25 deletions
diff --git a/reportdesign/inc/ReportDefinition.hxx b/reportdesign/inc/ReportDefinition.hxx index 9e1b619d1061..adad74da4c79 100644 --- a/reportdesign/inc/ReportDefinition.hxx +++ b/reportdesign/inc/ReportDefinition.hxx @@ -400,8 +400,6 @@ namespace reportdesign virtual ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler > getInteractionHandler() const SAL_OVERRIDE; virtual bool isEnableSetModified() const SAL_OVERRIDE; - ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > getContext() const; - ::com::sun::star::uno::Reference< ::com::sun::star::ui::XUIConfigurationManager2 > getUIConfigurationManager2( ) throw (::com::sun::star::uno::RuntimeException); }; diff --git a/reportdesign/inc/RptDef.hxx b/reportdesign/inc/RptDef.hxx index 9e310e6a65ec..e964353bc284 100644 --- a/reportdesign/inc/RptDef.hxx +++ b/reportdesign/inc/RptDef.hxx @@ -89,10 +89,6 @@ public: return lhs; } }; -/** returns the object type depending on the service name - @param _xComponent the report component -*/ -REPORTDESIGN_DLLPUBLIC sal_uInt16 getObjectType(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent>& _xComponent); typedef ::std::pair< OUString, std::shared_ptr<AnyConverter> > TPropertyConverter; typedef std::map<OUString, TPropertyConverter> TPropertyNamePair; /** returns the property name map for the given property id @@ -109,12 +105,6 @@ template < typename T> T getStyleProperty(const ::com::sun::star::uno::Reference return nReturn; } -template<typename T> void setStyleProperty(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition>& _xReport,const OUString& _sPropertyName,const T& _aValue) -{ - ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> xProp(getUsedStyle(_xReport),::com::sun::star::uno::UNO_QUERY); - if ( xProp.is() ) - xProp->setPropertyValue(_sPropertyName,::com::sun::star::uno::makeAny(_aValue)); -} } #endif // INCLUDED_REPORTDESIGN_INC_RPTDEF_HXX diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx index c7c9ffb0b591..238727edd64f 100644 --- a/reportdesign/source/core/api/ReportDefinition.cxx +++ b/reportdesign/source/core/api/ReportDefinition.cxx @@ -2672,11 +2672,6 @@ uno::Reference< document::XDocumentProperties > SAL_CALL OReportDefinition::getD return m_pImpl->m_xDocumentProperties; } -uno::Reference< uno::XComponentContext > OReportDefinition::getContext() const -{ - return m_aProps->m_xContext; -} - uno::Any SAL_CALL OReportDefinition::getTransferData( const datatransfer::DataFlavor& aFlavor ) throw (datatransfer::UnsupportedFlavorException, io::IOException, uno::RuntimeException, std::exception) { uno::Any aResult; diff --git a/reportdesign/source/core/inc/Tools.hxx b/reportdesign/source/core/inc/Tools.hxx index 63b923340d30..d80581efaacf 100644 --- a/reportdesign/source/core/inc/Tools.hxx +++ b/reportdesign/source/core/inc/Tools.hxx @@ -43,12 +43,6 @@ namespace reportdesign ::comphelper::disposeComponent(_xSection); } - /** gets the properties which should be removed form the property set implementation. - * - * \return A sequence of all properties which should be removed for none char able implementations. - */ - ::com::sun::star::uno::Sequence< OUString > lcl_getCharOptionals(); - /** uses the XChild interface to get the section from any child of it. * * \param _xReportComponent A report component which is a child of the section. diff --git a/reportdesign/source/ui/inc/SectionWindow.hxx b/reportdesign/source/ui/inc/SectionWindow.hxx index c0fee43b6ac0..41bdb042a8fa 100644 --- a/reportdesign/source/ui/inc/SectionWindow.hxx +++ b/reportdesign/source/ui/inc/SectionWindow.hxx @@ -116,8 +116,6 @@ namespace rptui */ void setMarked(bool _bMark); - OViewsWindow* getViewsWindow() const { return m_pParent; } - /** zoom the ruler and view windows */ void zoom(const Fraction& _aZoom); |