From af4c2598a1bf49ae9218ee354e0f591d23e1f15f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Wed, 8 Aug 2001 07:55:47 +0000 Subject: [PATCH] remove unneeded code git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2448 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_cursor.C | 17 ----------------- src/mathed/math_cursor.h | 4 ---- 2 files changed, 21 deletions(-) diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index 0f9a64a78b..b78c6a7405 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -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; } diff --git a/src/mathed/math_cursor.h b/src/mathed/math_cursor.h index d60427c2c1..6404f49427 100644 --- a/src/mathed/math_cursor.h +++ b/src/mathed/math_cursor.h @@ -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 -- 2.39.2