diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-02 23:16:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-05 10:54:19 +0100 |
commit | af60795f76f04e5a0315eeaa4cb9c5a90f4ae90c (patch) | |
tree | 529f6d32a19fc394afec567ad246dfb3f5522538 /svtools | |
parent | bIsCompressed is always false (diff) | |
download | core-af60795f76f04e5a0315eeaa4cb9c5a90f4ae90c.tar.gz core-af60795f76f04e5a0315eeaa4cb9c5a90f4ae90c.zip |
callcatcher: some more unused code
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/inc/svtools/headbar.hxx | 4 | ||||
-rw-r--r-- | svtools/source/control/headbar.cxx | 50 |
2 files changed, 0 insertions, 54 deletions
diff --git a/svtools/inc/svtools/headbar.hxx b/svtools/inc/svtools/headbar.hxx index 1cba24f2e212..a44bc8bbb2ca 100644 --- a/svtools/inc/svtools/headbar.hxx +++ b/svtools/inc/svtools/headbar.hxx @@ -353,11 +353,7 @@ public: long GetItemSize( sal_uInt16 nItemId ) const; void SetItemBits( sal_uInt16 nItemId, HeaderBarItemBits nNewBits ); HeaderBarItemBits GetItemBits( sal_uInt16 nItemId ) const; - void SetItemData( sal_uInt16 nItemId, void* pNewData ); - void* GetItemData( sal_uInt16 nItemId ) const; - void SetItemImage( sal_uInt16 nItemId, const Image& rImage ); - Image GetItemImage( sal_uInt16 nItemId ) const; void SetItemText( sal_uInt16 nItemId, const XubString& rText ); XubString GetItemText( sal_uInt16 nItemId ) const; diff --git a/svtools/source/control/headbar.cxx b/svtools/source/control/headbar.cxx index 2b22996c0486..1c48b33cf344 100644 --- a/svtools/source/control/headbar.cxx +++ b/svtools/source/control/headbar.cxx @@ -50,7 +50,6 @@ struct ImplHeadItem XubString maOutText; XubString maText; XubString maHelpText; - void* mpUserData; }; // ======================================================================= @@ -1231,7 +1230,6 @@ void HeaderBar::InsertItem( sal_uInt16 nItemId, const Image& rImage, pItem->mnBits = nBits; pItem->mnSize = nSize; pItem->maImage = rImage; - pItem->mpUserData = 0; if ( nPos < mpItemList->size() ) { ImplHeadItemList::iterator it = mpItemList->begin(); ::std::advance( it, nPos ); @@ -1259,7 +1257,6 @@ void HeaderBar::InsertItem( sal_uInt16 nItemId, const XubString& rText, pItem->mnBits = nBits; pItem->mnSize = nSize; pItem->maText = rText; - pItem->mpUserData = 0; if ( nPos < mpItemList->size() ) { ImplHeadItemList::iterator it = mpItemList->begin(); ::std::advance( it, nPos ); @@ -1290,7 +1287,6 @@ void HeaderBar::InsertItem( sal_uInt16 nItemId, pItem->mnSize = nSize; pItem->maImage = rImage; pItem->maText = rText; - pItem->mpUserData = 0; if ( nPos < mpItemList->size() ) { ImplHeadItemList::iterator it = mpItemList->begin(); ::std::advance( it, nPos ); @@ -1474,52 +1470,6 @@ HeaderBarItemBits HeaderBar::GetItemBits( sal_uInt16 nItemId ) const // ----------------------------------------------------------------------- -void HeaderBar::SetItemData( sal_uInt16 nItemId, void* pNewData ) -{ - sal_uInt16 nPos = GetItemPos( nItemId ); - if ( nPos != HEADERBAR_ITEM_NOTFOUND ) - { - (*mpItemList)[ nPos ]->mpUserData = pNewData; - ImplUpdate( nPos ); - } -} - -// ----------------------------------------------------------------------- - -void* HeaderBar::GetItemData( sal_uInt16 nItemId ) const -{ - sal_uInt16 nPos = GetItemPos( nItemId ); - if ( nPos != HEADERBAR_ITEM_NOTFOUND ) - return (*mpItemList)[ nPos ]->mpUserData; - else - return NULL; -} - -// ----------------------------------------------------------------------- - -void HeaderBar::SetItemImage( sal_uInt16 nItemId, const Image& rImage ) -{ - sal_uInt16 nPos = GetItemPos( nItemId ); - if ( nPos != HEADERBAR_ITEM_NOTFOUND ) - { - (*mpItemList)[ nPos ]->maImage = rImage; - ImplUpdate( nPos ); - } -} - -// ----------------------------------------------------------------------- - -Image HeaderBar::GetItemImage( sal_uInt16 nItemId ) const -{ - sal_uInt16 nPos = GetItemPos( nItemId ); - if ( nPos != HEADERBAR_ITEM_NOTFOUND ) - return (*mpItemList)[ nPos ]->maImage; - else - return Image(); -} - -// ----------------------------------------------------------------------- - void HeaderBar::SetItemText( sal_uInt16 nItemId, const XubString& rText ) { sal_uInt16 nPos = GetItemPos( nItemId ); |