]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_scriptinset.C
forward search in math insets. ugly. seems to work. don't ask why.
[lyx.git] / src / mathed / math_scriptinset.C
index ac4b098e78e8f271a4569e6cd7a64a7da5f911df..b752716f3ada9806ced79562655fe32ce5623ada 100644 (file)
@@ -74,15 +74,6 @@ void MathScriptInset::ensure(bool up)
 }
 
 
-bool MathScriptInset::covers(int x, int y) const
-{
-       for (idx_type i = 0; i < 2; ++i)
-               if (has(i) && xcell(i).covers(x, y))
-                       return true;
-       return false;
-}
-
-
 int MathScriptInset::dy0(MathInset const * nuc) const
 {
        int nd = ndes(nuc);
@@ -300,46 +291,6 @@ bool MathScriptInset::idxLeft(MathInset::idx_type &,
 }
 
 
-bool MathScriptInset::idxFirstUp(idx_type & idx, pos_type & pos) const
-{
-       if (!hasUp())
-               return false;
-       idx = 1;
-       pos = 0; 
-       return true;
-}
-
-
-bool MathScriptInset::idxFirstDown(idx_type & idx, pos_type & pos) const
-{
-       if (!hasDown())
-               return false;
-       idx = 0;
-       pos = 0; 
-       return true;
-}
-
-
-bool MathScriptInset::idxLastUp(idx_type & idx, pos_type & pos) const
-{
-       if (!hasUp())
-               return false;
-       idx = 1;
-       pos = up().data_.size(); 
-       return true;
-}
-
-
-bool MathScriptInset::idxLastDown(idx_type & idx, pos_type & pos) const
-{
-       if (!hasDown())
-               return false;
-       idx = 0;
-       pos = down().data_.size(); 
-       return true;
-}
-
-
 void MathScriptInset::write(WriteStream & os) const
 {  
        //lyxerr << "unexpected call to MathScriptInset::write()\n";