]> git.lyx.org Git - features.git/commitdiff
cosmetics
authorAndré Pönitz <poenitz@gmx.net>
Fri, 12 Oct 2001 13:29:46 +0000 (13:29 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 12 Oct 2001 13:29:46 +0000 (13:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2871 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/formulabase.C
src/mathed/math_cursor.C
src/mathed/math_cursor.h

index 7d5f21c3a09256794ef140a2bb1e7bca9bea10b2..eebcfc870316f7c461fcb6ed1e74a3d7284a1a59 100644 (file)
@@ -1,4 +1,4 @@
- /*
+/*
 *  File:        formulabase.C
 *  Purpose:     Implementation of common parts of the LyX  math insets
 *  Author:      Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
@@ -508,11 +508,6 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
        case LFUN_MATH_SPACE:
        {
                bv->lockedInsetStoreUndo(Undo::EDIT);
-               //MathSpaceInset * p = mathcursor->prevSpaceInset();
-               //if (p) 
-               //      p->incSpace();
-               //else
-               //      mathcursor->insert(new MathSpaceInset(1));
                mathcursor->insert(MathAtom(new MathSpaceInset(1)));
                updateLocal(bv, true);
                break;
index 0129b4531e1cb1acd309590e950579648cc38629..a0d1ecbb43232d64dcffd0d50674b471f18eaa15 100644 (file)
@@ -1340,9 +1340,8 @@ void MathCursor::interpret(char c)
        }
 
        if (c == ' ') {
-               MathSpaceInset * p = prevSpaceInset();
-               if (p) {
-                       p->incSpace();
+               if (hasPrevAtom() && prevAtom()->asSpaceInset()) {
+                       prevAtom()->asSpaceInset()->incSpace();
                        return;
                }
 
@@ -1465,9 +1464,3 @@ MathCursorPos MathCursor::normalAnchor() const
 }
 
 
-MathSpaceInset * MathCursor::prevSpaceInset() const
-{
-       if (!hasPrevAtom())
-               return 0;
-       return prevAtom()->asSpaceInset();
-}
index f6e50b218a18aa5531db3ba10d998ff3069e1db0..312938026523b1632454353f44c37fc84793f04b 100644 (file)
@@ -242,23 +242,11 @@ public:
        ///
        MathCursorPos const & cursor() const;
 
-
-       ///  
-       pos_type last() const;
        ///
        void seldump(char const * str) const;
        ///
        void dump(char const * str) const;
 
-       ///
-       void merge(MathArray const & arr);
-       ///
-       MathScriptInset * prevScriptInset() const;
-       ///
-       MathSpaceInset * prevSpaceInset() const;
-       /// glue adjacent atoms if possible
-       bool glueAdjacentAtoms();
-
        ///
        friend class Selection;