From: André Pönitz Date: Mon, 24 Sep 2001 14:03:48 +0000 (+0000) Subject: remove unneeded methods X-Git-Tag: 1.6.10~20562 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0e9148aa7807ba8ee24ccc0c1a85d97fcdc12365;p=features.git remove unneeded methods git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2794 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_fracbase.C b/src/mathed/math_fracbase.C index 9736d348fd..e52a841fcc 100644 --- a/src/mathed/math_fracbase.C +++ b/src/mathed/math_fracbase.C @@ -38,35 +38,3 @@ bool MathFracbaseInset::idxDown(int & idx, int &) const idx = 1; return true; } - - -bool MathFracbaseInset::idxFirstUp(int & idx, int & pos) const -{ - idx = 0; - pos = 0; - return true; -} - - -bool MathFracbaseInset::idxFirstDown(int & idx, int & pos) const -{ - idx = 1; - pos = 0; - return true; -} - - -bool MathFracbaseInset::idxLastUp(int & idx, int & pos) const -{ - idx = 0; - pos = cell(idx).size(); - return true; -} - - -bool MathFracbaseInset::idxLastDown(int & idx, int & pos) const -{ - idx = 1; - pos = cell(idx).size(); - return true; -} diff --git a/src/mathed/math_fracbase.h b/src/mathed/math_fracbase.h index 05935d93a1..1236c8a698 100644 --- a/src/mathed/math_fracbase.h +++ b/src/mathed/math_fracbase.h @@ -20,14 +20,6 @@ public: bool idxLeft(int &, int &) const; /// bool idxRight(int &, int &) const; - /// - bool idxFirstUp(int & idx, int & pos) const; - /// - bool idxFirstDown(int & idx, int & pos) const; - /// - bool idxLastUp(int & idx, int & pos) const; - /// - bool idxLastDown(int & idx, int & pos) const; }; #endif diff --git a/src/mathed/math_inset.C b/src/mathed/math_inset.C index 5d10501998..25f194aed3 100644 --- a/src/mathed/math_inset.C +++ b/src/mathed/math_inset.C @@ -185,18 +185,6 @@ bool MathInset::idxEnd(int &, int &) const } -bool MathInset::idxFirstUp(int &, int &) const -{ - return false; -} - - -bool MathInset::idxFirstDown(int &, int &) const -{ - return false; -} - - void MathInset::idxDelete(int &, bool & popit, bool & deleteit) { popit = false; @@ -208,18 +196,6 @@ void MathInset::idxDeleteRange(int, int) {} -bool MathInset::idxLastUp(int &, int &) const -{ - return false; -} - - -bool MathInset::idxLastDown(int &, int &) const -{ - return false; -} - - void MathInset::getXY(int & x, int & y) const { x = xo(); diff --git a/src/mathed/math_inset.h b/src/mathed/math_inset.h index f408a186e3..6b6875ef15 100644 --- a/src/mathed/math_inset.h +++ b/src/mathed/math_inset.h @@ -90,17 +90,8 @@ public: /// Target pos when we enter the inset from the left by pressing "Right" virtual bool idxFirst(int & idx, int & pos) const; - /// Target pos when we enter the inset from the left by pressing "Up" - virtual bool idxFirstUp(int & idx, int & pos) const; - /// Target pos when we enter the inset from the left by pressing "Down" - virtual bool idxFirstDown(int & idx, int & pos) const; - /// Target pos when we enter the inset from the right by pressing "Left" virtual bool idxLast(int & idx, int & pos) const; - /// Target pos when we enter the inset from the right by pressing "Up" - virtual bool idxLastUp(int & idx, int & pos) const; - /// Target pos when we enter the inset from the right by pressing "Down" - virtual bool idxLastDown(int & idx, int & pos) const; /// Where should we go if we press home? virtual bool idxHome(int & idx, int & pos) const; diff --git a/src/mathed/xarray.C b/src/mathed/xarray.C index 6842bb0051..f90008e817 100644 --- a/src/mathed/xarray.C +++ b/src/mathed/xarray.C @@ -25,7 +25,7 @@ void MathXArray::metrics(MathStyles st) const if (data_.empty()) return; - math_font_max_dim(LM_TC_TEXTRM, LM_ST_TEXT, ascent_, descent_); + math_font_max_dim(LM_TC_TEXTRM, st, ascent_, descent_); width_ = 0; //lyxerr << "MathXArray::metrics(): '" << data_ << "'\n";