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

loplugin:unusedmethods

Change-Id: Ief7cdb14e2c0fe4b0332cd90e063d649065bf3b6
Reviewed-on: https://gerrit.libreoffice.org/69171
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 527977d5
......@@ -160,8 +160,6 @@ include/svl/macitem.hxx:92
class SvStream & SvxMacroTableDtor::Write(class SvStream &) const
include/svl/poolitem.hxx:170
class SvStream & SfxPoolItem::Store(class SvStream &,unsigned short) const
include/svx/checklbx.hxx:76
void * SvxCheckListBox::SetEntryData(unsigned long,void *)
include/svx/dlgctrl.hxx:106
class Point SvxRectCtl::SetActualRPWithoutInvalidate(enum RectPoint)
include/svx/framelink.hxx:195
......@@ -192,7 +190,7 @@ include/vcl/bitmap.hxx:171
_Bool Bitmap::Dither()
include/vcl/bitmapex.hxx:241
_Bool BitmapEx::Rotate(long,const class Color &)
include/vcl/filter/PngImageReader.hxx:31
include/vcl/filter/PngImageReader.hxx:29
_Bool vcl::PngImageReader::read(class BitmapEx &)
include/vcl/fontcharmap.hxx:49
class tools::SvRef<class FontCharMap> FontCharMap::GetDefaultMap(_Bool)
......@@ -208,13 +206,13 @@ include/vcl/menu.hxx:389
_Bool Menu::HandleMenuDeActivateEvent(class Menu *) const
include/vcl/texteng.hxx:275
_Bool TextEngine::Read(class SvStream &,const class TextSelection *)
include/vcl/toolbox.hxx:513
include/vcl/toolbox.hxx:510
_Bool ToolBox::ChangeHighlightUpDn(_Bool)
include/vcl/weld.hxx:342
include/vcl/weld.hxx:356
_Bool weld::Dialog::runAsync(const class std::function<void (int)> &)
include/vcl/weld.hxx:628
include/vcl/weld.hxx:656
_Bool weld::TreeView::iter_nth_child(class weld::TreeIter &,int) const
include/vcl/weld.hxx:1366
include/vcl/weld.hxx:1396
_Bool weld::TextView::get_selection_bounds(int &,int &)
lotuswordpro/inc/lwpsvstream.hxx:76
class LwpSvStream & LwpSvStream::ReadUInt8(unsigned char &)
......@@ -330,7 +328,7 @@ vcl/inc/opengl/salbmp.hxx:103
_Bool OpenGLSalBitmap::ImplScaleArea(const class rtl::Reference<class OpenGLContext> &,double,double)
vcl/inc/opengl/texture.hxx:112
_Bool OpenGLTexture::CopyData(int,int,int,int,const unsigned char *)
vcl/inc/salframe.hxx:222
vcl/inc/salframe.hxx:231
_Bool SalFrame::SetPluginParent(struct SystemParentData *)
vcl/inc/salgdi.hxx:213
class basegfx::B2DPoint SalGraphics::mirror(const class basegfx::B2DPoint &,const class OutputDevice *) const
......
......@@ -436,24 +436,6 @@ namespace pcr
};
//= WaitCursor
/** wrapper around a ->WaitObject which can cope with a NULL window
*/
class WaitCursor
{
private:
std::unique_ptr< WaitObject > m_aWaitObject;
public:
explicit WaitCursor( vcl::Window* _pWindow )
{
if ( _pWindow )
m_aWaitObject.reset( new WaitObject( _pWindow ) );
}
};
} // namespace pcr
......
......@@ -56,24 +56,13 @@ public:
virtual ~SvxCheckListBox() override;
virtual void dispose() override;
void InsertEntry ( const OUString& rStr,
sal_uLong nPos = TREELIST_APPEND,
void* pUserData = nullptr,
SvLBoxButtonKind eButtonKind = SvLBoxButtonKind::EnabledCheckbox );
void RemoveEntry ( sal_uLong nPos );
void SelectEntryPos ( sal_uLong nPos );
sal_uLong GetSelectedEntryPos () const;
OUString GetText ( sal_uLong nPos ) const;
sal_uLong GetCheckedEntryCount() const;
void CheckEntryPos ( sal_uLong nPos, bool bCheck = true );
bool IsChecked ( sal_uLong nPos ) const;
void ToggleCheckButton ( SvTreeListEntry* pEntry );
void* SetEntryData ( sal_uLong nPos, void* pNewData );
void* GetEntryData ( sal_uLong nPos ) const;
virtual void MouseButtonDown ( const MouseEvent& rMEvt ) override;
virtual void KeyInput ( const KeyEvent& rKEvt ) override;
};
......
......@@ -309,8 +309,6 @@ class VCL_DLLPUBLIC OutputDevice : public virtual VclReferenceBase
friend class WorkWindow;
friend void ImplHandleResize( vcl::Window* pWindow, long nNewWidth, long nNewHeight );
friend cairo_surface_t* get_underlying_alpha_cairo_surface(const VirtualDevice&);
private:
OutputDevice(const OutputDevice&) = delete;
OutputDevice& operator=(const OutputDevice&) = delete;
......
......@@ -615,7 +615,6 @@ public:
void SetDefaultCollapsedEntryBmp( const Image& rBmp );
void SetCheckButtonState( SvTreeListEntry*, SvButtonState );
void SetCheckButtonInvisible( SvTreeListEntry* );
SvButtonState GetCheckButtonState( SvTreeListEntry* ) const;
void SetEntryText(SvTreeListEntry*, const OUString& );
......
......@@ -49,22 +49,6 @@ void SvxCheckListBox::Init_Impl()
EnableCheckButton( pCheckButton.get() );
}
void SvxCheckListBox::InsertEntry( const OUString& rStr, sal_uLong nPos,
void* pUserData,
SvLBoxButtonKind eButtonKind )
{
SvTreeListBox::InsertEntry( rStr, nullptr, false, nPos, pUserData,
eButtonKind );
}
void SvxCheckListBox::RemoveEntry( sal_uLong nPos )
{
if ( nPos < GetEntryCount() )
SvTreeListBox::GetModel()->Remove( GetEntry( nPos ) );
}
void SvxCheckListBox::SelectEntryPos( sal_uLong nPos )
{
if ( nPos < GetEntryCount() )
......@@ -82,30 +66,6 @@ sal_uLong SvxCheckListBox::GetSelectedEntryPos() const
}
OUString SvxCheckListBox::GetText( sal_uLong nPos ) const
{
SvTreeListEntry* pEntry = GetEntry( nPos );
if ( pEntry )
return GetEntryText( pEntry );
return OUString();
}
sal_uLong SvxCheckListBox::GetCheckedEntryCount() const
{
sal_uLong nCheckCount = 0;
sal_uLong nCount = GetEntryCount();
for ( sal_uLong i = 0; i < nCount; ++i )
{
if ( IsChecked( i ) )
nCheckCount++;
}
return nCheckCount;
}
void SvxCheckListBox::CheckEntryPos( sal_uLong nPos, bool bCheck )
{
if ( nPos < GetEntryCount() )
......@@ -122,28 +82,6 @@ bool SvxCheckListBox::IsChecked( sal_uLong nPos ) const
}
void* SvxCheckListBox::SetEntryData ( sal_uLong nPos, void* pNewData )
{
void* pOld = nullptr;
if ( nPos < GetEntryCount() )
{
pOld = GetEntry( nPos )->GetUserData();
GetEntry( nPos )->SetUserData( pNewData );
}
return pOld;
}
void* SvxCheckListBox::GetEntryData( sal_uLong nPos ) const
{
if ( nPos < GetEntryCount() )
return GetEntry( nPos )->GetUserData();
else
return nullptr;
}
void SvxCheckListBox::ToggleCheckButton( SvTreeListEntry* pEntry )
{
if ( pEntry )
......
......@@ -1750,19 +1750,6 @@ void SvTreeListBox::SetCheckButtonState( SvTreeListEntry* pEntry, SvButtonState
InvalidateEntry( pEntry );
}
void SvTreeListBox::SetCheckButtonInvisible( SvTreeListEntry* pEntry)
{
SvLBoxButton* pItem = (nTreeFlags & SvTreeFlags::CHKBTN) ?
static_cast<SvLBoxButton*>(pEntry->GetFirstItem(SvLBoxItemType::Button)) :
nullptr;
if (!pItem)
return;
pItem->SetStateInvisible();
InvalidateEntry(pEntry);
}
SvButtonState SvTreeListBox::GetCheckButtonState( SvTreeListEntry* pEntry ) const
{
SvButtonState eState = SvButtonState::Unchecked;
......
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