summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-11 14:45:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-12 13:23:27 +0200
commit569f7a4adefdfce9be82499d8449e808bfad06c6 (patch)
treec737644b65469b07bf4ee539eae2fdab1a6295fe /svtools
parentc5a9da1e47dffcf7c15229612bcdd48d7491ce3d (diff)
loplugin:unusedmethods
Change-Id: I0f96c41ab61bd4bfaf6c36d78d0a2ca768da0032 Reviewed-on: https://gerrit.libreoffice.org/60314 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ctrlbox.cxx17
1 files changed, 0 insertions, 17 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 1a10694313bb..20da4fc8d25e 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -536,23 +536,6 @@ void LineListBox::InsertEntry(
rWidthImpl, nStyle, nMinWidth, pColor1Fn, pColor2Fn, pColorDistFn));
}
-sal_Int32 LineListBox::GetEntryPos( SvxBorderLineStyle nStyle ) const
-{
- if(nStyle == SvxBorderLineStyle::NONE && !m_sNone.isEmpty())
- return 0;
- for ( size_t i = 0, n = m_vLineList.size(); i < n; ++i ) {
- auto& pData = m_vLineList[ i ];
- if ( pData->GetStyle() == nStyle )
- {
- size_t nPos = i;
- if (!m_sNone.isEmpty())
- nPos ++;
- return static_cast<sal_Int32>(nPos);
- }
- }
- return LISTBOX_ENTRY_NOTFOUND;
-}
-
SvxBorderLineStyle LineListBox::GetEntryStyle( sal_Int32 nPos ) const
{
ImpLineListData* pData = (0 <= nPos && static_cast<size_t>(nPos) < m_vLineList.size()) ? m_vLineList[ nPos ].get() : nullptr;