]> git.lyx.org Git - features.git/commitdiff
remove unneeded code
authorAndré Pönitz <poenitz@gmx.net>
Wed, 8 Aug 2001 07:55:47 +0000 (07:55 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 8 Aug 2001 07:55:47 +0000 (07:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2448 a592a061-630c-0410-9148-cb99ea01b6c8

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

index 0f9a64a78bdc355281f11b96a5a017fbaf312122..b78c6a74058c871846d676a896db639eb4a09a78 100644 (file)
@@ -606,7 +606,6 @@ void MathCursor::setSize(MathStyles size)
 }
 
 
-
 void MathCursor::interpret(string const & s)
 {
        //lyxerr << "interpret: '" << s << "'\n";
@@ -1224,20 +1223,6 @@ char MathCursor::halign() const
 }
 
 
-MathCursorPos MathCursor::firstSelectionPos() const
-{
-       MathCursorPos anc = normalAnchor();
-       return anc < cursor() ? anc : cursor(); 
-}
-
-
-MathCursorPos MathCursor::lastSelectionPos() const
-{
-       MathCursorPos anc = normalAnchor();
-       return anc < cursor() ? cursor() : anc; 
-}
-
-
 void MathCursor::getSelection(MathCursorPos & i1, MathCursorPos & i2) const
 {
        MathCursorPos anc = normalAnchor();
@@ -1316,8 +1301,6 @@ MathCursorPos MathCursor::normalAnchor() const
                // anchor is behind cursor -> move anchor behind the inset
                ++normal.pos_;
        }
-       //lyxerr << "normalizing: from " << Anchor_[Anchor_.size() - 1] << " to "
-       //      << normal << "\n";
        return normal;
 }
 
index d60427c2c15199534c109e3432b4defd99f622ed..6404f494279a1d34f010bb962ad42cce4cf58593 100644 (file)
@@ -216,10 +216,6 @@ public:
        ///
        MathXArray & xarray() const;
 
-       /// returns the first position of the (normalized) selection
-       MathCursorPos firstSelectionPos() const;
-       /// returns the last position of the (normalized) selection
-       MathCursorPos lastSelectionPos() const;
        /// returns the selection
        void getSelection(MathCursorPos &, MathCursorPos &) const;
        /// returns the normalized anchor of the selection