From 94ec4f6537d2af6cab51d9963317d710a7fba205 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=A9=20Kjellerup?= <rk.katana.steel@gmail>
Date: Mon, 15 Nov 2010 17:04:23 +0100
Subject: [PATCH 2/2] Removing dead code in ScDrawView

the method void DrawMarks(OutputDevice*) was unused in calc and actually
the implementation there of was dead code, so removed completely.

Commented references to unused code removed too, some (Hdl parts) I couldn't
even find in any of the parent classes.
---
 sc/source/ui/inc/drawview.hxx  |    5 -----
 sc/source/ui/view/drawview.cxx |   20 --------------------
 2 files changed, 0 insertions(+), 25 deletions(-)

diff --git a/sc/source/ui/inc/drawview.hxx b/sc/source/ui/inc/drawview.hxx
index caa1d4b..8952a8b 100644
--- a/sc/source/ui/inc/drawview.hxx
+++ b/sc/source/ui/inc/drawview.hxx
@@ -50,7 +50,6 @@ class ScDrawView: public FmFormView
     SdrDropMarkerOverlay*	pDropMarker;
     SdrObject*				pDropMarkObj;
     BOOL					bInConstruct;
-    //HMHBOOL					bDisableHdl;
 
     void			Construct();
     void			UpdateBrowser();
@@ -76,12 +75,8 @@ public:
 
     virtual void    DeleteMarked();
 
-    void			DrawMarks( OutputDevice* pOut ) const;
-
     void			MarkDropObj( SdrObject* pObj );
 
-    //HMHBOOL			IsDisableHdl() const 	{ return bDisableHdl; }
-
     void			SetMarkedToLayer( BYTE nLayerNo );
 
     void			InvalidateAttribs();
diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx
index b8d1633..a25033b 100644
--- a/sc/source/ui/view/drawview.cxx
+++ b/sc/source/ui/view/drawview.cxx
@@ -88,7 +88,6 @@ void ScDrawView::Construct()
     EnableExtendedCommandEventDispatcher(FALSE);
 
     SetFrameDragSingles(TRUE);
-//	SetSolidMarkHdl(TRUE);				// einstellbar -> UpdateUserViewOptions
 
     SetMinMoveDistancePixel( 2 );
     SetHitTolerancePixel( 2 );
@@ -248,20 +247,6 @@ void ScDrawView::InvalidateDrawTextAttrs()
     rBindings.Invalidate( SID_ALIGN_ANY_JUSTIFIED );
 }
 
-//void ScDrawView::DrawMarks( OutputDevice* pOut ) const
-//{
-//	DBG_ASSERT(pOut, "ScDrawView::DrawMarks: No OutputDevice (!)");
-//	SdrPaintWindow* pPaintWindow = FindPaintWindow(*pOut);
-//
-//	if(pPaintWindow)
-//	{
-//		if(pPaintWindow->isXorVisible())
-//		{
-//			ToggleShownXor(pOut, 0L);
-//		}
-//	}
-//}
-
 void ScDrawView::SetMarkedToLayer( BYTE nLayerNo )
 {
     if (AreObjectsMarked())
@@ -416,9 +401,7 @@ void ScDrawView::MarkListHasChanged()
     if ( pClient && pClient->IsObjectInPlaceActive() && !bUnoRefDialog )
     {
         //	#41730# beim ViewShell::Activate aus dem Reset2Open nicht die Handles anzeigen
-        //HMHbDisableHdl = TRUE;
         pClient->DeactivateObject();
-        //HMHbDisableHdl = FALSE;
         //	Image-Ole wieder durch Grafik ersetzen passiert jetzt in ScClient::UIActivate
     }
 
@@ -618,9 +601,6 @@ void __EXPORT ScDrawView::UpdateUserViewOptions()
         SetSnapEnabled( rGrid.GetUseGridSnap() );
         SetGridSnap( rGrid.GetUseGridSnap() );
 
-        //	Snap from grid options is no longer used
-//		SetSnapGrid( Size( rGrid.GetFldSnapX(), rGrid.GetFldSnapY() ) );
-
         Fraction aFractX( rGrid.GetFldDrawX(), rGrid.GetFldDivisionX() + 1 );
         Fraction aFractY( rGrid.GetFldDrawY(), rGrid.GetFldDivisionY() + 1 );
         SetSnapGridWidth( aFractX, aFractY );
-- 
1.7.2.2

