From 85bb58ad1d2d4f7877449a35eb474bc5784ff216 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Mon, 22 Mar 2004 13:36:13 +0000 Subject: [PATCH] Remove unused nopos_ mamber variable. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8510 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 2 ++ src/cursor.C | 3 +-- src/cursor.h | 5 ----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 6f103e98a4..e04d445dce 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -4,6 +4,8 @@ Ensure that error_handler is processed once only and that all data is saved before attempting to output any warning messages. + * cursor.[Ch] (nopos_, noPos): remove unused member variable/function. + 2004-03-21 Alfredo Braunstein * tabular.C (TeXRow): crash fix (from Kayvan and André) diff --git a/src/cursor.C b/src/cursor.C index 6f8a911191..761bb0c5e7 100644 --- a/src/cursor.C +++ b/src/cursor.C @@ -114,7 +114,6 @@ DispatchResult LCursor::dispatch(FuncRequest const & cmd0) //lyxerr << "\nLCursor::dispatch: cmd: " << cmd0 << endl << *this << endl; FuncRequest cmd = cmd0; - nopop_ = false; LCursor safe = *this; for ( ; size(); pop()) { @@ -134,7 +133,7 @@ DispatchResult LCursor::dispatch(FuncRequest const & cmd0) } // it completely to get a 'bomb early' behaviour in case this // object will be used again. - if (nopop_ || !disp_.dispatched()) + if (!disp_.dispatched()) operator=(safe); return disp_; } diff --git a/src/cursor.h b/src/cursor.h index 2bb5980277..44ef8b80a4 100644 --- a/src/cursor.h +++ b/src/cursor.h @@ -170,8 +170,6 @@ public: void undispatched(); /// don't call update() when done void noUpdate(); - /// don't pop cursor to the level where the LFUN was handled - void noPop(); /// output friend std::ostream & operator<<(std::ostream & os, LCursor const & cur); @@ -206,9 +204,6 @@ private: bool selection_; /// are we on the way to get one? bool mark_; - /// Reset cursor to the value it had at the beginning of the latest - // dispatch() once the event is fully handled. - bool nopop_; // // math specific stuff that could be promoted to "global" later