[Libreoffice-commits] .: vcl/inc vcl/source
August Sodora
augsod at kemper.freedesktop.org
Sun Dec 11 18:06:47 PST 2011
vcl/inc/vcl/status.hxx | 2 --
vcl/source/window/status.cxx | 22 ----------------------
2 files changed, 24 deletions(-)
New commits:
commit 5008540c40484467e857c3245ae29c17c29673a2
Author: August Sodora <augsod at gmail.com>
Date: Sun Dec 11 21:06:38 2011 -0500
Remove unused code
diff --git a/vcl/inc/vcl/status.hxx b/vcl/inc/vcl/status.hxx
index 4fa982c..56cf7c7 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 32dcc4a..b701697 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 );
More information about the Libreoffice-commits
mailing list