summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-16 10:39:54 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-16 11:43:47 +0100
commit7c1e12af8794db56a5dd9eeaea7067e6eff6584d (patch)
treeb1f70a9a765d0b5cf1fd2c18e102c5effc3fb1a8 /vcl
parentd0ab0b08fad84f72a11c9234f759c08333637536 (diff)
callcatcher: update unused code
res ctor fallout continues at pace Change-Id: Ic431c678919a6521ce94719cbf06b87ebf922a0c
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/menubtn.cxx27
-rw-r--r--vcl/source/control/tabctrl.cxx25
2 files changed, 0 insertions, 52 deletions
diff --git a/vcl/source/control/menubtn.cxx b/vcl/source/control/menubtn.cxx
index 7f263b685ae6..8e11b3812169 100644
--- a/vcl/source/control/menubtn.cxx
+++ b/vcl/source/control/menubtn.cxx
@@ -80,33 +80,6 @@ MenuButton::MenuButton( Window* pParent, WinBits nWinBits )
ImplInit( pParent, nWinBits );
}
-MenuButton::MenuButton( Window* pParent, const ResId& rResId )
- : PushButton( WINDOW_MENUBUTTON )
-{
- ImplInitMenuButtonData();
- rResId.SetRT( RSC_MENUBUTTON );
- WinBits nStyle = ImplInitRes( rResId );
- ImplInit( pParent, nStyle );
- ImplLoadRes( rResId );
-
- if ( !(nStyle & WB_HIDE) )
- Show();
-}
-
-void MenuButton::ImplLoadRes( const ResId& rResId )
-{
- Control::ImplLoadRes( rResId );
-
- sal_uLong nObjMask = ReadLongRes();
-
- if ( RSCMENUBUTTON_MENU & nObjMask )
- {
- mpOwnMenu = new PopupMenu( ResId( (RSHEADER_TYPE*)GetClassRes(), *rResId.GetResMgr() ) );
- SetPopupMenu( mpOwnMenu );
- IncrementRes( GetObjSizeRes( (RSHEADER_TYPE*)GetClassRes() ) );
- }
-}
-
MenuButton::~MenuButton()
{
delete mpMenuTimer;
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 09af36305d92..dd0c5c9b1fcd 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -1614,31 +1614,6 @@ Size TabControl::GetTabPageSizePixel() const
return aRect.GetSize();
}
-void TabControl::InsertPage( const ResId& rResId, sal_uInt16 nPos )
-{
- GetRes( rResId.SetRT( RSC_TABCONTROLITEM ) );
-
- sal_uLong nObjMask = ReadLongRes();
- sal_uInt16 nItemId = 1;
-
- // ID
- if ( nObjMask & RSC_TABCONTROLITEM_ID )
- nItemId = sal::static_int_cast<sal_uInt16>(ReadLongRes());
-
- // Text
- OUString aTmpStr;
- if( nObjMask & RSC_TABCONTROLITEM_TEXT )
- aTmpStr = ReadStringRes();
- InsertPage( nItemId, aTmpStr, nPos );
-
- // PageResID
- if ( nObjMask & RSC_TABCONTROLITEM_PAGERESID )
- {
- //skip unused TabPageResId value
- ReadLongRes();
- }
-}
-
void TabControl::InsertPage( sal_uInt16 nPageId, const OUString& rText,
sal_uInt16 nPos )
{