From 0c0228c4887ac3534cfb6679886f459850a65777 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 18 May 2015 11:15:10 +0100 Subject: callcatcher: update unused code Change-Id: I43dd399368953c629916dad8104a296f837a6344 --- basctl/source/basicide/baside2.hxx | 1 - basctl/source/basicide/baside2b.cxx | 23 ----------------------- 2 files changed, 24 deletions(-) (limited to 'basctl/source') diff --git a/basctl/source/basicide/baside2.hxx b/basctl/source/basicide/baside2.hxx index 401553aa26a9..1fc931f3ad39 100644 --- a/basctl/source/basicide/baside2.hxx +++ b/basctl/source/basicide/baside2.hxx @@ -179,7 +179,6 @@ private: protected: virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE; BreakPoint* FindBreakPoint( const Point& rMousePos ); - void ShowMarker(vcl::RenderContext& rRenderContext); virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE; virtual void Command( const CommandEvent& rCEvt ) SAL_OVERRIDE; diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 95b6a95d455a..33aa565305de 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -1426,29 +1426,6 @@ void BreakPointWindow::SetNoMarker () SetMarkerPos(NoMarker); } -void BreakPointWindow::ShowMarker(vcl::RenderContext& rRenderContext) -{ - if (nMarkerPos == NoMarker) - return; - - Size const aOutSz = GetOutputSize(); - long const nLineHeight = GetTextHeight(); - - Image aMarker = GetImage(bErrorMarker ? IMGID_ERRORMARKER : IMGID_STEPMARKER); - - Size aMarkerSz(aMarker.GetSizePixel()); - aMarkerSz = rRenderContext.PixelToLogic(aMarkerSz); - Point aMarkerOff(0, 0); - aMarkerOff.X() = (aOutSz.Width() - aMarkerSz.Width()) / 2; - aMarkerOff.Y() = (nLineHeight - aMarkerSz.Height()) / 2; - - sal_uLong nY = nMarkerPos * nLineHeight - nCurYOffset; - Point aPos(0, nY); - aPos += aMarkerOff; - - rRenderContext.DrawImage(aPos, aMarker); -} - BreakPoint* BreakPointWindow::FindBreakPoint( const Point& rMousePos ) { size_t nLineHeight = GetTextHeight(); -- cgit