]> git.lyx.org Git - features.git/commitdiff
Remove unused nopos_ mamber variable.
authorAngus Leeming <leeming@lyx.org>
Mon, 22 Mar 2004 13:36:13 +0000 (13:36 +0000)
committerAngus Leeming <leeming@lyx.org>
Mon, 22 Mar 2004 13:36:13 +0000 (13:36 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8510 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/cursor.C
src/cursor.h

index 6f103e98a4245b6a060f9381c979212fe01d2d4e..e04d445dce3debb42e84eb05fb09b0c9d0332180 100644 (file)
@@ -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  <abraunst@lyx.org>
 
        * tabular.C (TeXRow): crash fix (from Kayvan and AndrĂ©)
index 6f8a9111916a380ffb90ca2cac882a35bd5ab044..761bb0c5e7b26ff156e23c54c863c60e27e097ea 100644 (file)
@@ -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_;
 }
index 2bb5980277461d65a20b346d486cffccf1da9a6e..44ef8b80a4e6f42d0d79fc072301d3e68b8c648e 100644 (file)
@@ -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