From 38023af6c13602ae1856bea11693c18c0c3efa36 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 23 Jul 2015 09:49:57 +0200 Subject: loplugin:unusedmethods Change-Id: If5090c330e12d6e537766bf4a9be0a2360381a7a Reviewed-on: https://gerrit.libreoffice.org/17312 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basctl/source/basicide/baside2.hxx | 3 --- basctl/source/basicide/bastype2.hxx | 5 ----- basctl/source/basicide/bastype3.hxx | 1 - basctl/source/basicide/iderdll.cxx | 1 - basctl/source/basicide/iderdll2.hxx | 6 ------ basctl/source/basicide/moduldlg.hxx | 2 -- basctl/source/inc/basidesh.hxx | 3 --- basctl/source/inc/bastypes.hxx | 13 ++++--------- basctl/source/inc/dlged.hxx | 1 - basctl/source/inc/dlgedobj.hxx | 3 --- basctl/source/inc/propbrw.hxx | 1 - 11 files changed, 4 insertions(+), 35 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/baside2.hxx b/basctl/source/basicide/baside2.hxx index 76d81b733706..f3d22e797557 100644 --- a/basctl/source/basicide/baside2.hxx +++ b/basctl/source/basicide/baside2.hxx @@ -247,8 +247,6 @@ public: void AddWatch( const OUString& rVName ); bool RemoveSelectedWatch(); void UpdateWatches( bool bBasicStopped = false ); - - WatchTreeListBox& GetWatchTreeListBox() { return *aTreeListBox.get(); } }; @@ -363,7 +361,6 @@ public: void ManageBreakPoints(); void UpdateBreakPoint( const BreakPoint& rBrk ); void BasicAddWatch(); - void BasicRemoveWatch(); bool BasicErrorHdl( StarBASIC* pBasic ); long BasicBreakHdl( StarBASIC* pBasic ); diff --git a/basctl/source/basicide/bastype2.hxx b/basctl/source/basicide/bastype2.hxx index c0f02b49e1cc..d009735b6c01 100644 --- a/basctl/source/basicide/bastype2.hxx +++ b/basctl/source/basicide/bastype2.hxx @@ -141,19 +141,14 @@ public: bool operator == (EntryDescriptor const& rDesc) const; ScriptDocument const& GetDocument() const { return m_aDocument; } - void SetDocument( const ScriptDocument& rDocument ) { m_aDocument = rDocument; } LibraryLocation GetLocation() const { return m_eLocation; } - void SetLocation( LibraryLocation eLocation ) { m_eLocation = eLocation; } const OUString& GetLibName() const { return m_aLibName; } - void SetLibName( const OUString& aLibName ) { m_aLibName = aLibName; } const OUString& GetLibSubName() const { return m_aLibSubName; } - void SetLibSubName( const OUString& aLibSubName ) { m_aLibSubName = aLibSubName; } const OUString& GetName() const { return m_aName; } - void SetName( const OUString& aName ) { m_aName = aName; } const OUString& GetMethodName() const { return m_aMethodName; } void SetMethodName( const OUString& aMethodName ) { m_aMethodName = aMethodName; } diff --git a/basctl/source/basicide/bastype3.hxx b/basctl/source/basicide/bastype3.hxx index 7565fc45e486..5974db7c2788 100644 --- a/basctl/source/basicide/bastype3.hxx +++ b/basctl/source/basicide/bastype3.hxx @@ -42,7 +42,6 @@ public: ExtendedEdit( vcl::Window* pParent, IDEResId nRes ); void SetAccHdl( const Link& rLink ) { aAccHdl = rLink; } - void SetLoseFocusHdl( const Link& rLink ) { aLoseFocusHdl = rLink; } Accelerator& GetAccelerator() { return aAcc; } }; diff --git a/basctl/source/basicide/iderdll.cxx b/basctl/source/basicide/iderdll.cxx index 535397b31933..be9715598b01 100644 --- a/basctl/source/basicide/iderdll.cxx +++ b/basctl/source/basicide/iderdll.cxx @@ -151,7 +151,6 @@ ExtraData* Dll::GetExtraData () ExtraData::ExtraData () : pSearchItem(new SvxSearchItem(SID_SEARCH_ITEM)), - nBasicDialogCount(0), bChoosingMacro(false), bShellInCriticalSection(false) { diff --git a/basctl/source/basicide/iderdll2.hxx b/basctl/source/basicide/iderdll2.hxx index e64b6a01ae4e..02b8e6667354 100644 --- a/basctl/source/basicide/iderdll2.hxx +++ b/basctl/source/basicide/iderdll2.hxx @@ -44,8 +44,6 @@ private: OUString aAddLibPath; OUString aAddLibFilter; - sal_uInt16 nBasicDialogCount; - bool bChoosingMacro; bool bShellInCriticalSection; @@ -64,10 +62,6 @@ public: bool& ChoosingMacro() { return bChoosingMacro; } bool& ShellInCriticalSection() { return bShellInCriticalSection; } - sal_uInt16 GetBasicDialogCount() const { return nBasicDialogCount; } - void IncBasicDialogCount() { nBasicDialogCount++; } - void DecBasicDialogCount() { nBasicDialogCount--; } - SvxSearchItem& GetSearchItem() const { return *pSearchItem; } void SetSearchItem( const SvxSearchItem& rItem ); diff --git a/basctl/source/basicide/moduldlg.hxx b/basctl/source/basicide/moduldlg.hxx index 305acbb0d4a9..c70e8b732a03 100644 --- a/basctl/source/basicide/moduldlg.hxx +++ b/basctl/source/basicide/moduldlg.hxx @@ -141,7 +141,6 @@ public: void SetDocument( const ScriptDocument& rDocument ) { m_aDocument = rDocument; } void SetMode (ObjectMode::Mode); - ObjectMode::Mode GetMode () const { return eMode; } }; class LibDialog: public ModalDialog @@ -164,7 +163,6 @@ public: bool IsReplace() const { return m_pReplaceBox->IsChecked(); } void EnableReference (bool b) { m_pReferenceBox->Enable(b); } - void EnableReplace (bool b) { m_pReplaceBox->Enable(b); } }; class OrganizeDialog : public TabDialog diff --git a/basctl/source/inc/basidesh.hxx b/basctl/source/inc/basidesh.hxx index 3949209bee6a..eed997708905 100644 --- a/basctl/source/inc/basidesh.hxx +++ b/basctl/source/inc/basidesh.hxx @@ -162,9 +162,6 @@ public: OUString const& GetCurLibName() const { return m_aCurLibName; } boost::shared_ptr GetCurLocalizationMgr() const { return m_pCurLocalizationMgr; } - ScrollBar& GetHScrollBar() { return *aHScrollBar.get(); } - ScrollBar& GetVScrollBar() { return *aVScrollBar.get(); } - ScrollBarBox& GetScrollBarBox() { return *aScrollBarBox.get(); } TabBar& GetTabBar() { return *pTabBar; } WindowTable& GetWindowTable() { return aWindowTable; } sal_uInt16 GetWindowId (BaseWindow const* pWin) const; diff --git a/basctl/source/inc/bastypes.hxx b/basctl/source/inc/bastypes.hxx index 943679217082..6b32a2d1d76a 100644 --- a/basctl/source/inc/bastypes.hxx +++ b/basctl/source/inc/bastypes.hxx @@ -223,11 +223,10 @@ public: const ScriptDocument& GetDocument() const { return m_aDocument; } - void SetDocument( const ScriptDocument& rDocument ) { m_aDocument = rDocument; } bool IsDocument( const ScriptDocument& rDocument ) const { return rDocument == m_aDocument; } - const OUString& GetLibName() const { return m_aLibName; } - void SetLibName( const OUString& aLibName ) { m_aLibName = aLibName; } - const OUString& GetName() const { return m_aName; } + const OUString& GetLibName() const { return m_aLibName; } + + const OUString& GetName() const { return m_aName; } void SetName( const OUString& aName ) { m_aName = aName; } virtual void OnNewDocument (); @@ -268,7 +267,6 @@ private: }; public: const ScriptDocument& GetDocument() const { return m_aDocument; } - const OUString& GetLibName() const { return m_aLibName; } }; public: class Item @@ -282,11 +280,8 @@ public: public: Item (ScriptDocument const&, OUString const& rLibName, OUString const& rCurrentName, ItemType eCurrentType); ~Item (); - public: - const ScriptDocument& GetDocument() const { return m_aDocument; } - const OUString& GetLibName() const { return m_aLibName; } const OUString& GetCurrentName() const { return m_aCurrentName; } - ItemType GetCurrentType() const { return m_eCurrentType; } + ItemType GetCurrentType() const { return m_eCurrentType; } }; private: typedef std::unordered_map Map; diff --git a/basctl/source/inc/dlged.hxx b/basctl/source/inc/dlged.hxx index 0e8ebe64ebb9..aec6543a7a4d 100644 --- a/basctl/source/inc/dlged.hxx +++ b/basctl/source/inc/dlged.hxx @@ -177,7 +177,6 @@ public: bool RemarkDialog(); void SetDialogModelChanged (bool bChanged = true) { bDialogModelChanged = bChanged; } - bool IsDialogModelChanged () const { return bDialogModelChanged; } bool IsModified () const; void ClearModifyFlag(); diff --git a/basctl/source/inc/dlgedobj.hxx b/basctl/source/inc/dlgedobj.hxx index 5a576502acea..ddbf7e7e517e 100644 --- a/basctl/source/inc/dlgedobj.hxx +++ b/basctl/source/inc/dlgedobj.hxx @@ -180,9 +180,6 @@ public: void UpdateTabOrderAndGroups(); css::awt::DeviceInfo getDeviceInfo() const; - -private: - void ImplInvalidateDeviceInfo(); }; } // namespace basctl diff --git a/basctl/source/inc/propbrw.hxx b/basctl/source/inc/propbrw.hxx index 507ed9c80e71..cec3da86f138 100644 --- a/basctl/source/inc/propbrw.hxx +++ b/basctl/source/inc/propbrw.hxx @@ -78,7 +78,6 @@ public: // note: changing the Context document to an instance other than the one given in the ctor is not supported // currently void Update( const SfxViewShell* pShell ); - SdrView* GetCurView() const { return pView; } private: void ImplUpdate( const css::uno::Reference< css::frame::XModel >& _rxContextDocument, SdrView* pView ); -- cgit