]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_inset.C
remove position cache from insets - these were the last data item stored in
[features.git] / src / mathed / math_inset.C
index f8e45759743f4197364504f9b3bdcd61e79746b2..40984b1670e543e80668f36a615d023339ea5796 100644 (file)
@@ -25,7 +25,6 @@
 
 
 MathInset::MathInset()
-       : xo_(0), yo_(0)
 {}
 
 
@@ -47,30 +46,6 @@ std::ostream & operator<<(std::ostream & os, MathInset const & inset)
 }
 
 
-int MathInset::xo() const
-{
-       return xo_;
-}
-
-
-int MathInset::yo() const
-{
-       return yo_;
-}
-
-
-void MathInset::xo(int x) const
-{
-       xo_ = x;
-}
-
-
-void MathInset::yo(int y) const
-{
-       yo_ = y;
-}
-
-
 MathInset::size_type MathInset::nargs() const
 {
        return 0;
@@ -182,13 +157,6 @@ void MathInset::idxDeleteRange(idx_type, idx_type)
 {}
 
 
-void MathInset::getXY(int & x, int & y) const
-{
-       x = xo();
-       y = yo();
-}
-
-
 void MathInset::writeNormal(std::ostream & os) const
 {
        os << "[unknown ";
@@ -209,13 +177,8 @@ void MathInset::dump() const
 
 bool MathInset::covers(int x, int y) const
 {
-       //lyxerr << "cover? p: " << this << " x: " << x << " y: " <<  y
-       //      << " xo_: " << xo_ << " yo_: " << yo_  << endl;
-       return
-               x >= xo_ &&
-               x <= xo_ + width() &&
-               y >= yo_ - ascent() &&
-               y <= yo_ + descent();
+       lyxerr << "MathInset::covers() called directly!\n";
+       return false;
 }