summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2011-12-11 21:06:38 -0500
committerAugust Sodora <augsod@gmail.com>2011-12-11 21:06:38 -0500
commit5008540c40484467e857c3245ae29c17c29673a2 (patch)
treefa2482f8e4dcf238e423cda88ad38bc351f7b989 /vcl
parentc95fa19f7c7b58a2beb65ad52335322ec2ae6f18 (diff)
Remove unused code
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/status.hxx2
-rw-r--r--vcl/source/window/status.cxx22
2 files changed, 0 insertions, 24 deletions
diff --git a/vcl/inc/vcl/status.hxx b/vcl/inc/vcl/status.hxx
index 4fa982c61670..56cf7c7c6989 100644
--- a/vcl/inc/vcl/status.hxx
+++ b/vcl/inc/vcl/status.hxx
@@ -143,9 +143,7 @@ public:
sal_uInt16 nPos = STATUSBAR_APPEND );
void RemoveItem( sal_uInt16 nItemId );
- void HideItem( sal_uInt16 nItemId );
sal_Bool IsItemVisible( sal_uInt16 nItemId ) const;
-
sal_Bool AreItemsVisible() const { return mbVisibleItems; }
void Clear();
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index 32dcc4a56d6c..b701697c0dd4 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -1036,28 +1036,6 @@ void StatusBar::RemoveItem( sal_uInt16 nItemId )
// -----------------------------------------------------------------------
-void StatusBar::HideItem( sal_uInt16 nItemId )
-{
- sal_uInt16 nPos = GetItemPos( nItemId );
-
- if ( nPos != STATUSBAR_ITEM_NOTFOUND )
- {
- ImplStatusItem* pItem = (*mpItemList)[ nPos ];
- if ( pItem->mbVisible )
- {
- pItem->mbVisible = sal_False;
-
- mbFormat = sal_True;
- if ( ImplIsItemUpdate() )
- Invalidate();
-
- ImplCallEventListeners( VCLEVENT_STATUSBAR_HIDEITEM, (void*) sal_IntPtr(nItemId) );
- }
- }
-}
-
-// -----------------------------------------------------------------------
-
sal_Bool StatusBar::IsItemVisible( sal_uInt16 nItemId ) const
{
sal_uInt16 nPos = GetItemPos( nItemId );