]> git.lyx.org Git - features.git/commitdiff
remove unneeded methods
authorAndré Pönitz <poenitz@gmx.net>
Mon, 24 Sep 2001 14:03:48 +0000 (14:03 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 24 Sep 2001 14:03:48 +0000 (14:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2794 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_fracbase.C
src/mathed/math_fracbase.h
src/mathed/math_inset.C
src/mathed/math_inset.h
src/mathed/xarray.C

index 9736d348fd368ea8437fd393a05bd27e0dc1bd54..e52a841fccd689220d2953e3db542bc9bc1eeb7f 100644 (file)
@@ -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;
-}
index 05935d93a1e6c940563ee111fa067354bdfdbe60..1236c8a69830b8f2b195455de06cf9acf89f124a 100644 (file)
@@ -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
index 5d10501998d45fce3f0d0732e468c4107f0d95c3..25f194aed37908d6fe24c823a4062f3c124451e9 100644 (file)
@@ -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();
index f408a186e38c48c50f1e092a2369a44341c5a111..6b6875ef15a0384a7b619e3671a9d6ca291c5567 100644 (file)
@@ -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;
index 6842bb005192661d153efd2333ae3412fccbb19e..f90008e817a4e025744caac7e0e7c9fe3f5900cc 100644 (file)
@@ -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";