commit 69bc6b2077904e96ff7ef057849efa035b0c0f08 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Jun 6 14:17:57 2025 +0200
Remove unused methods They have been useless since 2016 (c737f1cd), as far as I can see. --- src/mathed/MathData.cpp | 16 ---------------- src/mathed/MathData.h | 4 ---- 2 files changed, 20 deletions(-) diff --git a/src/mathed/MathData.cpp b/src/mathed/MathData.cpp index 763b7e238f..0425f672bf 100644 --- a/src/mathed/MathData.cpp +++ b/src/mathed/MathData.cpp @@ -1006,22 +1006,6 @@ Dimension const & MathData::dimension(BufferView const & bv) const } -int MathData::xm(BufferView const & bv) const -{ - Geometry const & g = bv.coordCache().cells().geometry(this); - - return g.pos.x + g.dim.wid / 2; -} - - -int MathData::ym(BufferView const & bv) const -{ - Geometry const & g = bv.coordCache().cells().geometry(this); - - return g.pos.y + (g.dim.des - g.dim.asc) / 2; -} - - int MathData::xo(BufferView const & bv) const { return bv.coordCache().cells().x(this); diff --git a/src/mathed/MathData.h b/src/mathed/MathData.h index 12af4c69ed..bd2f8d72c9 100644 --- a/src/mathed/MathData.h +++ b/src/mathed/MathData.h @@ -155,10 +155,6 @@ public: int xo(BufferView const & bv) const; /// access to cached y coordinate of last drawing int yo(BufferView const & bv) const; - /// access to cached x coordinate of mid point of last drawing - int xm(BufferView const & bv) const; - /// access to cached y coordinate of mid point of last drawing - int ym(BufferView const & bv) const; /// write access to coordinate; void setXY(BufferView & bv, int x, int y) const; /// returns x coordinate of given position in the data -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs