summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-29 00:31:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-29 09:56:08 +0100
commitde82a40f84c69081a517617989c344ec9597cb45 (patch)
tree6b9c15c67b11db681e6e8417b62efdd0a98b013a /basic
parent313332e76bd17c0a5a6bd67c0abc467877948a3a (diff)
callcatcher: drop various unused methods
Diffstat (limited to 'basic')
-rw-r--r--basic/source/app/brkpnts.cxx52
-rw-r--r--basic/source/app/brkpnts.hxx5
2 files changed, 0 insertions, 57 deletions
diff --git a/basic/source/app/brkpnts.cxx b/basic/source/app/brkpnts.cxx
index 920e5ad0eef5..729aa508cd35 100644
--- a/basic/source/app/brkpnts.cxx
+++ b/basic/source/app/brkpnts.cxx
@@ -70,16 +70,6 @@ BreakpointWindow::BreakpointWindow( Window *pParent )
Show();
}
-
-void BreakpointWindow::Reset()
-{
- for ( size_t i = 0, n = BreakpointList.size(); i < n; ++i )
- delete BreakpointList[ i ];
- BreakpointList.clear();
-
- pModule->ClearAllBP();
-}
-
void BreakpointWindow::SetModule( SbModule *pMod )
{
pModule = pMod;
@@ -160,19 +150,6 @@ void BreakpointWindow::InsertBreakpoint( sal_uInt32 nLine )
#endif
}
-
-Breakpoint* BreakpointWindow::FindBreakpoint( sal_uInt32 nLine )
-{
- for ( size_t i = 0, n = BreakpointList.size(); i < n; ++i )
- {
- Breakpoint* pBP = BreakpointList[ i ];
- if ( pBP->nLine == nLine )
- return pBP;
- }
- return NULL;
-}
-
-
void BreakpointWindow::AdjustBreakpoints( sal_uInt32 nLine, bool bInserted )
{
if ( nLine == 0 ) //TODO: nLine == TEXT_PARA_ALL+1
@@ -281,24 +258,6 @@ void BreakpointWindow::Paint( const Rectangle& )
ShowMarker( sal_True );
}
-
-Breakpoint* BreakpointWindow::FindBreakpoint( const Point& rMousePos )
-{
- sal_Int32 nLineHeight = GetTextHeight();
- sal_Int32 nYPos = rMousePos.Y() + nCurYOffset;
-
- for ( size_t i = 0, n = BreakpointList.size(); i < n; ++i )
- {
- Breakpoint* pBrk = BreakpointList[ i ];
- sal_Int32 nLine = pBrk->nLine-1;
- sal_Int32 nY = nLine * nLineHeight;
- if ( ( nYPos > nY ) && ( nYPos < ( nY + nLineHeight ) ) )
- return pBrk;
- }
- return NULL;
-}
-
-
void BreakpointWindow::ToggleBreakpoint( sal_uInt32 nLine )
{
bool Removed = false;
@@ -366,17 +325,6 @@ void BreakpointWindow::MouseButtonDown( const MouseEvent& rMEvt )
}
}
-
-void BreakpointWindow::SetMarkerPos( sal_uInt32 nLine, bool bError )
-{
- ShowMarker( false ); // Remove old one
- nMarkerPos = nLine;
- bErrorMarker = bError;
- ShowMarker( true ); // Draw new one
- Update();
-}
-
-
void BreakpointWindow::Scroll( long nHorzScroll, long nVertScroll, sal_uInt16 nFlags )
{
(void) nFlags; /* avoid warning about unused parameter */
diff --git a/basic/source/app/brkpnts.hxx b/basic/source/app/brkpnts.hxx
index 5ea60c8e7608..dc4d4471a4af 100644
--- a/basic/source/app/brkpnts.hxx
+++ b/basic/source/app/brkpnts.hxx
@@ -42,8 +42,6 @@ using Window::Scroll;
public:
BreakpointWindow( Window *pParent );
- void Reset();
-
void SetModule( SbModule *pMod );
void SetBPsInModule();
@@ -64,13 +62,10 @@ private:
protected:
virtual void Paint( const Rectangle& );
- Breakpoint* FindBreakpoint( const Point& rMousePos );
- Breakpoint* FindBreakpoint( sal_uInt32 nLine );
void ShowMarker( bool bShow );
virtual void MouseButtonDown( const MouseEvent& rMEvt );
public:
- void SetMarkerPos( sal_uInt32 nLine, bool bErrorMarker = false );
virtual void Scroll( long nHorzScroll, long nVertScroll, sal_uInt16 nFlags = 0 );
long& GetCurYOffset() { return nCurYOffset; }
};