summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-04 09:10:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-04 09:42:21 +0000
commitb70fbfd9265d46a0bc088ff08b52fd78268a4834 (patch)
tree7511f25c4c14150940b03e9e1f33931283a50427 /sc
parent3f8126822c5cb4348f769d9a0776d457f5587b58 (diff)
update unused list
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/inc/invmerge.hxx2
-rw-r--r--sc/source/ui/view/invmerge.cxx12
2 files changed, 1 insertions, 13 deletions
diff --git a/sc/source/ui/inc/invmerge.hxx b/sc/source/ui/inc/invmerge.hxx
index ebe03a91988f..ccffe888ad78 100644
--- a/sc/source/ui/inc/invmerge.hxx
+++ b/sc/source/ui/inc/invmerge.hxx
@@ -38,7 +38,6 @@ class Window;
class ScInvertMerger
{
private:
- Window* pWin;
::std::vector< Rectangle >* pRects;
Rectangle aTotalRect;
Rectangle aLineRect;
@@ -47,7 +46,6 @@ private:
void FlushTotal();
public:
- ScInvertMerger( Window* pWindow );
ScInvertMerger( ::std::vector< Rectangle >* pRectangles );
~ScInvertMerger();
diff --git a/sc/source/ui/view/invmerge.cxx b/sc/source/ui/view/invmerge.cxx
index 8a8a88517121..82469a52289a 100644
--- a/sc/source/ui/view/invmerge.cxx
+++ b/sc/source/ui/view/invmerge.cxx
@@ -37,15 +37,7 @@
//------------------------------------------------------------------
-ScInvertMerger::ScInvertMerger( Window* pWindow ) :
- pWin( pWindow ),
- pRects( NULL )
-{
- // both rectangles empty
-}
-
ScInvertMerger::ScInvertMerger( ::std::vector< Rectangle >* pRectangles ) :
- pWin( NULL ),
pRects( pRectangles )
{
// collect rectangles instead of inverting
@@ -112,9 +104,7 @@ void ScInvertMerger::FlushTotal()
if( aTotalRect.IsEmpty() )
return; // nothing to do
- if ( pWin )
- pWin->Invert( aTotalRect, INVERT_HIGHLIGHT );
- else if ( pRects )
+ if ( pRects )
pRects->push_back( aTotalRect );
aTotalRect.SetEmpty();