Kaydet (Commit) 569f7a4a authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedmethods

Change-Id: I0f96c41ab61bd4bfaf6c36d78d0a2ca768da0032
Reviewed-on: https://gerrit.libreoffice.org/60314
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst c5a9da1e
......@@ -294,7 +294,7 @@ sw/source/uibase/inc/mailmergewizard.hxx:79
_Bool SwMailMergeWizard::skipUntil(unsigned short)
ucb/source/ucp/webdav-neon/ContentProperties.hxx:169
_Bool webdav_ucp::CachableContentProperties::containsAllNames(const class com::sun::star::uno::Sequence<struct com::sun::star::beans::Property> &,class std::__debug::vector<class rtl::OUString, class std::allocator<class rtl::OUString> > &) const
ucb/source/ucp/webdav-neon/NeonSession.hxx:232
ucb/source/ucp/webdav-neon/NeonSession.hxx:239
_Bool webdav_ucp::NeonSession::UNLOCK(struct ne_lock *)
vcl/inc/font/FeatureCollector.hxx:48
_Bool vcl::font::FeatureCollector::collect()
......@@ -310,7 +310,7 @@ vcl/inc/salframe.hxx:222
_Bool SalFrame::SetPluginParent(struct SystemParentData *)
vcl/inc/salgdi.hxx:219
class basegfx::B2DPoint SalGraphics::mirror(const class basegfx::B2DPoint &,const class OutputDevice *) const
vcl/inc/salgdi.hxx:402
vcl/inc/salgdi.hxx:401
_Bool SalGraphics::BlendBitmap(const struct SalTwoRect &,const class SalBitmap &,const class OutputDevice *)
vcl/inc/unx/gtk/gtkdata.hxx:164
int GtkSalDisplay::CaptureMouse(class SalFrame *)
......
......@@ -59,8 +59,6 @@ class SvxNumberingPreview : public vcl::Window
void SetNumRule(const SvxNumRule* pNum)
{pActNum = pNum; Invalidate();};
void SetPositionMode()
{ bPosition = true;}
void SetLevel(sal_uInt16 nSet) {nActLevel = nSet;}
};
......
......@@ -216,8 +216,6 @@ public:
ColorFunc pColor2Fn = &sameColor,
ColorDistFunc pColorDistFn = &sameDistColor);
using ListBox::GetEntryPos;
sal_Int32 GetEntryPos( SvxBorderLineStyle nStyle ) const;
SvxBorderLineStyle GetEntryStyle( sal_Int32 nPos ) const;
SvxBorderLineStyle GetSelectEntryStyle() const;
......
......@@ -35,9 +35,6 @@ private:
DECL_LINK( OnMenuItemSelected, Menu*, bool );
template< typename ListType, typename EntryType >
void FillPresetListBoxImpl(ListType& pList, sal_uInt32 nStartIndex);
public:
SvxPresetListBox(vcl::Window* pParent, WinBits nWinStyle);
......
......@@ -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;
......
......@@ -81,18 +81,6 @@ void SvxPresetListBox::DrawLayout()
SetColCount(getColumnCount());
SetLineCount(5);
}
template< typename ListType, typename EntryType >
void SvxPresetListBox::FillPresetListBoxImpl(ListType & pList, sal_uInt32 nStartIndex)
{
const Size aSize( GetIconSize() );
BitmapEx aBitmap;
for(long nIndex = 0; nIndex < pList.Count(); nIndex++, nStartIndex++)
{
aBitmap = pList.GetBitmapForPreview(nIndex, aSize);
EntryType* pItem = static_cast<EntryType*>( pList.Get(nIndex) );
InsertItem(nStartIndex, Image(aBitmap), pItem->GetName());
}
}
IMPL_LINK(SvxPresetListBox, OnMenuItemSelected, Menu*, pMenu, bool)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment