From a62a139c4f33b4e981851dac961cfc41f23f896f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 22 Dec 2019 19:19:01 +0200 Subject: loplugin:unusedmethods Change-Id: Iad97bdbcbec4cbbccf3df9b9d682e744b0c1982e Reviewed-on: https://gerrit.libreoffice.org/85709 Tested-by: Jenkins Reviewed-by: Noel Grandin --- extensions/source/propctrlr/inspectorhelpwindow.cxx | 18 ------------------ extensions/source/propctrlr/inspectorhelpwindow.hxx | 2 -- 2 files changed, 20 deletions(-) (limited to 'extensions') diff --git a/extensions/source/propctrlr/inspectorhelpwindow.cxx b/extensions/source/propctrlr/inspectorhelpwindow.cxx index 699f64cc6ba8..beaecec3502a 100644 --- a/extensions/source/propctrlr/inspectorhelpwindow.cxx +++ b/extensions/source/propctrlr/inspectorhelpwindow.cxx @@ -47,11 +47,6 @@ namespace pcr m_nMaxLines = nMaxLines; } - long InspectorHelpWindow::GetMinimalHeightPixel() - { - return impl_getMinimalTextWindowHeight(); - } - long InspectorHelpWindow::impl_getMinimalTextWindowHeight() { return m_xHelpText->get_height_rows(m_nMinLines); @@ -62,19 +57,6 @@ namespace pcr return m_xHelpText->get_height_rows(m_nMaxLines); } - long InspectorHelpWindow::GetOptimalHeightPixel() - { - // --- calc the height as needed for the mere text window - long nMinTextWindowHeight = impl_getMinimalTextWindowHeight(); - long nMaxTextWindowHeight = impl_getMaximalTextWindowHeight(); - - long nActTextWindowHeight = m_xHelpFrame->get_preferred_size().Height(); - - long nOptTextWindowHeight = std::max( nMinTextWindowHeight, std::min( nMaxTextWindowHeight, nActTextWindowHeight ) ); - - return nOptTextWindowHeight; - } - } // namespace pcr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/inspectorhelpwindow.hxx b/extensions/source/propctrlr/inspectorhelpwindow.hxx index fb8d15290eff..47041e33e0fa 100644 --- a/extensions/source/propctrlr/inspectorhelpwindow.hxx +++ b/extensions/source/propctrlr/inspectorhelpwindow.hxx @@ -40,8 +40,6 @@ namespace pcr void SetText(const OUString& rStr); void SetLimits(sal_Int32 nMinLines, sal_Int32 nMaxLines); - long GetMinimalHeightPixel(); - long GetOptimalHeightPixel(); void Show(bool bShow) { m_xHelpFrame->set_visible(bShow); } bool IsVisible() const { return m_xHelpFrame->get_visible(); } -- cgit v1.2.3