summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-30 15:37:25 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-31 06:28:41 +0000
commit3d7325898547c94826cfddc6852d400e84e2dda1 (patch)
tree894e0f527f0dc42f478b10d34cf95c94e6d74e83 /vcl
parentfafb2cf4de2eb2de46afab0738b7fd95663c0164 (diff)
loplugin:unusedmethods
Change-Id: Ifeb818227a960cab8fd2e8e7352468efbfe1232c Reviewed-on: https://gerrit.libreoffice.org/25668 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/accel.cxx29
-rw-r--r--vcl/source/window/dockwin.cxx13
-rw-r--r--vcl/source/window/keycod.cxx26
-rw-r--r--vcl/source/window/menu.cxx12
4 files changed, 0 insertions, 80 deletions
diff --git a/vcl/source/window/accel.cxx b/vcl/source/window/accel.cxx
index 01d75c7cd647..bf72b66c1d8e 100644
--- a/vcl/source/window/accel.cxx
+++ b/vcl/source/window/accel.cxx
@@ -123,25 +123,6 @@ static void ImplAccelEntryInsert( ImplAccelList* pList, ImplAccelEntry* pEntry )
}
}
-static sal_uInt16 ImplAccelEntryGetFirstPos( ImplAccelList* pList, sal_uInt16 nId )
-{
- sal_uInt16 nIndex = ImplAccelEntryGetIndex( pList, nId );
- if ( nIndex != ACCELENTRY_NOTFOUND )
- {
- while ( nIndex )
- {
- nIndex--;
- if ( (*pList)[ nIndex ]->mnId != nId )
- break;
- }
-
- if ( (*pList)[ nIndex ]->mnId != nId )
- nIndex++;
- }
-
- return nIndex;
-}
-
void Accelerator::ImplInit()
{
mnCurId = 0;
@@ -295,16 +276,6 @@ sal_uInt16 Accelerator::GetItemCount() const
return (sal_uInt16)mpData->maIdList.size();
}
-vcl::KeyCode Accelerator::GetKeyCode( sal_uInt16 nItemId ) const
-{
-
- sal_uInt16 nIndex = ImplAccelEntryGetFirstPos( &(mpData->maIdList), nItemId );
- if ( nIndex != ACCELENTRY_NOTFOUND )
- return mpData->maIdList[ nIndex ]->maKeyCode;
- else
- return vcl::KeyCode();
-}
-
sal_uInt16 Accelerator::GetItemId( sal_uInt16 nPos ) const
{
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index 984d713959f6..a42bca14c5a0 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -427,19 +427,6 @@ DockingWindow::DockingWindow( vcl::Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-DockingWindow::DockingWindow( vcl::Window* pParent, const ResId& rResId ) :
- Window( WINDOW_DOCKINGWINDOW )
-{
- ImplInitDockingWindowData();
- rResId.SetRT( RSC_DOCKINGWINDOW );
- WinBits nStyle = ImplInitRes( rResId );
- ImplInit( pParent, nStyle );
- ImplLoadRes( rResId );
-
- if ( !(nStyle & WB_HIDE) )
- Show();
-}
-
//Find the real parent stashed in mpDialogParent.
void DockingWindow::doDeferredInit(WinBits nBits)
{
diff --git a/vcl/source/window/keycod.cxx b/vcl/source/window/keycod.cxx
index be3e282c2193..7f7661ee1ad6 100644
--- a/vcl/source/window/keycod.cxx
+++ b/vcl/source/window/keycod.cxx
@@ -75,32 +75,6 @@ vcl::KeyCode::KeyCode( KeyFuncType eFunction )
eFunc = eFunction;
}
-vcl::KeyCode::KeyCode( const ResId& rResId )
- : nKeyCodeAndModifiers(0)
- , eFunc(KeyFuncType::DONTKNOW)
-{
- rResId.SetRT( RSC_KEYCODE );
-
- ResMgr* pResMgr = rResId.GetResMgr();
- if ( pResMgr && pResMgr->GetResource( rResId ) )
- {
- pResMgr->Increment( sizeof( RSHEADER_TYPE ) );
-
- sal_uLong nKeyCode = pResMgr->ReadLong();
- sal_uLong nModifier = pResMgr->ReadLong();
- sal_uLong nKeyFunc = pResMgr->ReadLong();
-
- eFunc = (KeyFuncType)nKeyFunc;
- if ( eFunc != KeyFuncType::DONTKNOW )
- {
- sal_uInt16 nDummy;
- ImplGetKeyCode( eFunc, nKeyCodeAndModifiers, nDummy, nDummy, nDummy );
- }
- else
- nKeyCodeAndModifiers = sal::static_int_cast<sal_uInt16>(nKeyCode | nModifier);
- }
-}
-
OUString vcl::KeyCode::GetName( vcl::Window* pWindow ) const
{
if ( !pWindow )
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 64549365efd9..1506724c881e 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -2339,18 +2339,6 @@ Rectangle Menu::GetBoundingRectangle( sal_uInt16 nPos ) const
return aRet;
}
-void Menu::SetAccessibleName( sal_uInt16 nItemId, const OUString& rStr )
-{
- size_t nPos;
- MenuItemData* pData = pItemList->GetData( nItemId, nPos );
-
- if (pData && !rStr.equals(pData->aAccessibleName))
- {
- pData->aAccessibleName = rStr;
- ImplCallEventListeners(VCLEVENT_MENU_ACCESSIBLENAMECHANGED, nPos);
- }
-}
-
OUString Menu::GetAccessibleName( sal_uInt16 nItemId ) const
{
MenuItemData* pData = pItemList->GetData( nItemId );