From d85cf3218a14f5b7419dbc6b6796e65ff5dbfc74 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 2 Dec 2016 16:19:02 +0100 Subject: [PATCH] Remove unused method in ArgumentProxy Also reorder some methods. --- src/mathed/MathMacro.cpp | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index 104d119913..71654b4d1c 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -116,6 +116,16 @@ public: // This should never be invoked, since ArgumentProxy insets are linearized LATTEST(false); } + /// + int kerning(BufferView const * bv) const + { + return displayCell(bv).kerning(bv); + } + /// + void draw(PainterInfo &, int, int) const { + // This should never be invoked, since ArgumentProxy insets are linearized + LATTEST(false); + } // write(), normalize(), infoize() and infoize2() are not needed since // MathMacro uses the definition and not the expanded cells. /// @@ -130,18 +140,6 @@ public: void htmlize(HtmlStream & ms) const { ms << mathMacro_->cell(idx_); } /// void octave(OctaveStream & os) const { os << mathMacro_->cell(idx_); } - /// - void draw(PainterInfo &, int, int) const { - // This should never be invoked, since ArgumentProxy insets are linearized - LATTEST(false); - } - /// - size_t idx() const { return idx_; } - /// - int kerning(BufferView const * bv) const - { - return displayCell(bv).kerning(bv); - } private: /// -- 2.39.2