summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-28 10:10:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-29 07:28:57 +0100
commita566fd1c1a50f9bcb4c69a19bdf4fb1955285d93 (patch)
tree13273efcf8aa69ce39a1860dc3d111c071e6a7b3 /vcl
parent411260d836e7bf6c693b9b7d16af1b36184133af (diff)
loplugin:unusedmethods
Change-Id: I2efb5c0e5735c179314c6c5de87821cee3b033e1 Reviewed-on: https://gerrit.libreoffice.org/45386 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/gdimtf.cxx15
-rw-r--r--vcl/source/window/menu.cxx18
-rw-r--r--vcl/source/window/paint.cxx18
-rw-r--r--vcl/source/window/window.cxx16
4 files changed, 0 insertions, 67 deletions
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index a9c24b8c4843..779bcbdcddc3 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -588,21 +588,6 @@ void GDIMetaFile::push_back( MetaAction* pAction )
m_aList.push_back( pAction );
}
-void GDIMetaFile::RemoveAction( size_t nPos )
-{
- if ( nPos < m_aList.size() )
- {
- ::std::vector< MetaAction* >::iterator it = m_aList.begin();
- ::std::advance( it, nPos );
- (*it)->Delete();
- m_aList.erase( it );
-
- }
-
- if( m_pPrev )
- m_pPrev->RemoveAction( nPos );
-}
-
bool GDIMetaFile::Mirror( BmpMirrorFlags nMirrorFlags )
{
const Size aOldPrefSize( GetPrefSize() );
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 0bb415251eab..28038bb53714 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -2112,24 +2112,6 @@ void Menu::RemoveDisabledEntries( bool bCheckPopups, bool bRemoveEmptyPopups )
mpLayoutData = nullptr;
}
-bool Menu::HasValidEntries()
-{
- bool bValidEntries = false;
- sal_uInt16 nCount = GetItemCount();
- for ( sal_uInt16 n = 0; !bValidEntries && ( n < nCount ); n++ )
- {
- MenuItemData* pItem = pItemList->GetDataFromPos( n );
- if ( pItem->bEnabled && ( pItem->eType != MenuItemType::SEPARATOR ) )
- {
- if ( pItem->pSubMenu )
- bValidEntries = pItem->pSubMenu->HasValidEntries();
- else
- bValidEntries = true;
- }
- }
- return bValidEntries;
-}
-
void Menu::UpdateNativeMenu()
{
if ( ImplGetSalMenu() )
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index 04aab4ccdcaa..a77e09db9f13 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -1126,24 +1126,6 @@ void Window::SetWindowRegionPixel( const vcl::Region& rRegion )
}
}
-const vcl::Region& Window::GetWindowRegionPixel() const
-{
-
- if ( mpWindowImpl->mpBorderWindow )
- return mpWindowImpl->mpBorderWindow->GetWindowRegionPixel();
- else
- return mpWindowImpl->maWinRegion;
-}
-
-bool Window::IsWindowRegionPixel() const
-{
-
- if ( mpWindowImpl->mpBorderWindow )
- return mpWindowImpl->mpBorderWindow->IsWindowRegionPixel();
- else
- return mpWindowImpl->mbWinRegion;
-}
-
vcl::Region Window::GetPaintRegion() const
{
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 5083f418b2c2..c68601165057 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -1942,22 +1942,6 @@ void Window::StateChanged(StateChangedType eType)
}
}
-bool Window::IsLocked() const
-{
- if ( mpWindowImpl->mnLockCount != 0 )
- return true;
-
- VclPtr<vcl::Window> pChild = mpWindowImpl->mpFirstChild;
- while ( pChild )
- {
- if ( pChild->IsLocked() )
- return true;
- pChild = pChild->mpWindowImpl->mpNext;
- }
-
- return false;
-}
-
void Window::SetStyle( WinBits nStyle )
{
if ( mpWindowImpl && mpWindowImpl->mnStyle != nStyle )