From 37a2fda3563c8518543c22ff640b9dc3c035de1b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 2 Jul 2017 14:04:10 +0200 Subject: ClientBox::CalcActiveHeight parameter nPos is unused ...ever since the code's introduction in 2d63c4689a13599ec9389c370726005f01fea08c "Basic Impress Remote + linking of dialog and server." Change-Id: I312315263fbb73dea421ddeb16381318a6fd8bec --- sd/source/ui/dlg/RemoteDialogClientBox.cxx | 5 ++--- sd/source/ui/dlg/RemoteDialogClientBox.hxx | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'sd/source/ui') diff --git a/sd/source/ui/dlg/RemoteDialogClientBox.cxx b/sd/source/ui/dlg/RemoteDialogClientBox.cxx index d0583395923f..fa97922690b9 100644 --- a/sd/source/ui/dlg/RemoteDialogClientBox.cxx +++ b/sd/source/ui/dlg/RemoteDialogClientBox.cxx @@ -137,9 +137,8 @@ void ClientBox::dispose() } // Title + description -void ClientBox::CalcActiveHeight( const long nPos ) +void ClientBox::CalcActiveHeight() { - (void) nPos; const ::osl::MutexGuard aGuard( m_entriesMutex ); // get title height @@ -342,7 +341,7 @@ void ClientBox::DrawRow(vcl::RenderContext& rRenderContext, const ::tools::Recta void ClientBox::RecalcAll() { if ( m_bHasActive ) - CalcActiveHeight( m_nActive ); + CalcActiveHeight(); SetupScrollBar(); diff --git a/sd/source/ui/dlg/RemoteDialogClientBox.hxx b/sd/source/ui/dlg/RemoteDialogClientBox.hxx index 156ffc48e5f5..f5c194efd358 100644 --- a/sd/source/ui/dlg/RemoteDialogClientBox.hxx +++ b/sd/source/ui/dlg/RemoteDialogClientBox.hxx @@ -117,7 +117,7 @@ class ClientBox : public Control std::vector< TClientBoxEntry > m_vEntries; std::vector< TClientBoxEntry > m_vRemovedEntries; - void CalcActiveHeight( const long nPos ); + void CalcActiveHeight(); long GetTotalHeight() const; void SetupScrollBar(); void DrawRow(vcl::RenderContext& rRenderContext, const ::tools::Rectangle& rRect, const TClientBoxEntry& rEntry); -- cgit