summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-20 14:08:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-20 14:37:38 +0100
commit73de019c0b1ac82229f7c5cff84deea39ad78a18 (patch)
treef9b805d3ede88b22429b6ef4ca66c6d63c54f3c7 /extensions
parent01702f7d5f52b72a890f6a0173d42199c587e01f (diff)
loplugin:unusedfields
Change-Id: If130c8a4861998d7eafd2e9525592f3c811ec21c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87069 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/browserlistbox.cxx5
-rw-r--r--extensions/source/propctrlr/browserlistbox.hxx1
-rw-r--r--extensions/source/propctrlr/inspectorhelpwindow.cxx8
-rw-r--r--extensions/source/propctrlr/inspectorhelpwindow.hxx5
-rw-r--r--extensions/source/propctrlr/propertyeditor.cxx7
-rw-r--r--extensions/source/propctrlr/propertyeditor.hxx1
6 files changed, 0 insertions, 27 deletions
diff --git a/extensions/source/propctrlr/browserlistbox.cxx b/extensions/source/propctrlr/browserlistbox.cxx
index a50d93c6f4aa..4b50e290daa1 100644
--- a/extensions/source/propctrlr/browserlistbox.cxx
+++ b/extensions/source/propctrlr/browserlistbox.cxx
@@ -381,11 +381,6 @@ namespace pcr
m_xHelpWindow->SetText( _rHelpText );
}
- void OBrowserListBox::SetHelpLineLimites(sal_Int32 nMinLines, sal_Int32 nMaxLines)
- {
- m_xHelpWindow->SetLimits(nMinLines, nMaxLines);
- }
-
void OBrowserListBox::UpdatePlayGround()
{
for (auto& line : m_aLines)
diff --git a/extensions/source/propctrlr/browserlistbox.hxx b/extensions/source/propctrlr/browserlistbox.hxx
index ad0a3aab6c64..aa312b6fd071 100644
--- a/extensions/source/propctrlr/browserlistbox.hxx
+++ b/extensions/source/propctrlr/browserlistbox.hxx
@@ -100,7 +100,6 @@ namespace pcr
void EnableHelpSection( bool _bEnable );
bool HasHelpSection() const;
void SetHelpText( const OUString& _rHelpText );
- void SetHelpLineLimites( sal_Int32 _nMinLines, sal_Int32 _nMaxLines );
void Clear();
diff --git a/extensions/source/propctrlr/inspectorhelpwindow.cxx b/extensions/source/propctrlr/inspectorhelpwindow.cxx
index 427366e25f91..2ade8a57a3f5 100644
--- a/extensions/source/propctrlr/inspectorhelpwindow.cxx
+++ b/extensions/source/propctrlr/inspectorhelpwindow.cxx
@@ -27,8 +27,6 @@ namespace pcr
InspectorHelpWindow::InspectorHelpWindow(weld::Builder& rBuilder)
: m_xHelpFrame(rBuilder.weld_widget("helpframe"))
, m_xHelpText(rBuilder.weld_text_view("helptext"))
- , m_nMinLines( 3 )
- , m_nMaxLines( 8 )
{
}
@@ -41,12 +39,6 @@ namespace pcr
m_xHelpText->set_text(rStr);
}
- void InspectorHelpWindow::SetLimits(sal_Int32 nMinLines, sal_Int32 nMaxLines)
- {
- m_nMinLines = nMinLines;
- m_nMaxLines = nMaxLines;
- }
-
} // namespace pcr
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/extensions/source/propctrlr/inspectorhelpwindow.hxx b/extensions/source/propctrlr/inspectorhelpwindow.hxx
index b67fee9df216..af9bae304f5a 100644
--- a/extensions/source/propctrlr/inspectorhelpwindow.hxx
+++ b/extensions/source/propctrlr/inspectorhelpwindow.hxx
@@ -30,17 +30,12 @@ namespace pcr
std::unique_ptr<weld::Widget> m_xHelpFrame;
std::unique_ptr<weld::TextView> m_xHelpText;
- sal_Int32 m_nMinLines;
- sal_Int32 m_nMaxLines;
-
public:
explicit InspectorHelpWindow(weld::Builder& rBuilder);
~InspectorHelpWindow();
void SetText(const OUString& rStr);
- void SetLimits(sal_Int32 nMinLines, sal_Int32 nMaxLines);
-
void Show(bool bShow) { m_xHelpFrame->set_visible(bShow); }
bool IsVisible() const { return m_xHelpFrame->get_visible(); }
};
diff --git a/extensions/source/propctrlr/propertyeditor.cxx b/extensions/source/propctrlr/propertyeditor.cxx
index 9629e3d35dc7..94200f274ccc 100644
--- a/extensions/source/propctrlr/propertyeditor.cxx
+++ b/extensions/source/propctrlr/propertyeditor.cxx
@@ -131,7 +131,6 @@ namespace pcr
xPage->getListBox().SetListener(m_pListener);
xPage->getListBox().SetObserver(m_pObserver);
xPage->getListBox().EnableHelpSection(m_bHasHelpSection);
- xPage->getListBox().SetHelpLineLimites(m_nMinHelpLines, m_nMaxHelpLines);
xPage->SetHelpId(rHelpId);
m_aShownPages[nId] = PropertyPage(m_xTabControl->get_n_pages() - 1, rText, std::move(xPage));
@@ -226,7 +225,6 @@ namespace pcr
{
m_nMinHelpLines = nMinLines;
m_nMaxHelpLines = nMaxLines;
- forEachPage( &OPropertyEditor::setHelpLineLimits );
}
void OPropertyEditor::enableHelpSection( OBrowserPage& rPage, const void* )
@@ -244,11 +242,6 @@ namespace pcr
rPage.getListBox().SetHelpText( rText );
}
- void OPropertyEditor::setHelpLineLimits( OBrowserPage& rPage, const void* )
- {
- rPage.getListBox().SetHelpLineLimites( m_nMinHelpLines, m_nMaxHelpLines );
- }
-
void OPropertyEditor::InsertEntry( const OLineDescriptor& rData, sal_uInt16 nPageId, sal_uInt16 nPos )
{
// let the current page handle this
diff --git a/extensions/source/propctrlr/propertyeditor.hxx b/extensions/source/propctrlr/propertyeditor.hxx
index f0e1b994e23d..a6ec4c211b87 100644
--- a/extensions/source/propctrlr/propertyeditor.hxx
+++ b/extensions/source/propctrlr/propertyeditor.hxx
@@ -124,7 +124,6 @@ namespace pcr
void setPageControlObserver( OBrowserPage& _rPage, const void* );
void enableHelpSection( OBrowserPage& _rPage, const void* );
static void setHelpSectionText( OBrowserPage& _rPage, const void* _pPointerToOUString );
- void setHelpLineLimits( OBrowserPage& _rPage, const void* );
DECL_LINK(OnPageDeactivate, const OString&, bool);
DECL_LINK(OnPageActivate, const OString&, void);