From: André Pönitz Date: Wed, 8 Aug 2001 07:55:47 +0000 (+0000) Subject: remove unneeded code X-Git-Tag: 1.6.10~20897 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=af4c2598a1bf49ae9218ee354e0f591d23e1f15f;p=features.git remove unneeded code git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2448 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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