summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-18 08:56:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-19 21:11:01 +0000
commit705e5fe94769415cfca60c73eebb8232464645b2 (patch)
tree9934c6afc11c237b1bc4627d813925c8985940cd /vcl
parentfd094baaf79e391f99da9c8259b13144e8de7847 (diff)
callcatcher: remove some unused code
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/tabctrl.hxx4
-rw-r--r--vcl/source/control/tabctrl.cxx25
2 files changed, 0 insertions, 29 deletions
diff --git a/vcl/inc/vcl/tabctrl.hxx b/vcl/inc/vcl/tabctrl.hxx
index 380fb2e70883..970044a377f8 100644
--- a/vcl/inc/vcl/tabctrl.hxx
+++ b/vcl/inc/vcl/tabctrl.hxx
@@ -194,10 +194,6 @@ public:
using Control::GetIndexForPoint;
long GetIndexForPoint( const Point& rPoint, sal_uInt16& rPageId ) const;
- // returns the bounding rectangle of the union of tab page area and the
- // corresponding tab
- Rectangle GetTabPageBounds( sal_uInt16 nPageId ) const;
-
// returns the rectangle of the tab for page nPageId
Rectangle GetTabBounds( sal_uInt16 nPageId ) const;
};
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 7bdd0d3af0bf..799c96bbd1a8 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -2140,31 +2140,6 @@ void TabControl::FillLayoutData() const
// -----------------------------------------------------------------------
-Rectangle TabControl::GetTabPageBounds( sal_uInt16 nPage ) const
-{
- Rectangle aRet;
-
- if( !HasLayoutData() || ! mpTabCtrlData->maLayoutPageIdToLine.size() )
- FillLayoutData();
-
- if( HasLayoutData() )
- {
- boost::unordered_map< int, int >::const_iterator it = mpTabCtrlData->maLayoutPageIdToLine.find( (int)nPage );
- if( it != mpTabCtrlData->maLayoutPageIdToLine.end() )
- {
- if( it->second >= 0 && it->second < static_cast<int>(mpTabCtrlData->maTabRectangles.size()) )
- {
- aRet = mpTabCtrlData->maTabRectangles[ it->second ];
- aRet.Union( const_cast<TabControl*>(this)->ImplGetTabRect( TAB_PAGERECT ) );
- }
- }
- }
-
- return aRet;
-}
-
-// -----------------------------------------------------------------------
-
Rectangle TabControl::GetTabBounds( sal_uInt16 nPageId ) const
{
Rectangle aRet;