]> git.lyx.org Git - lyx.git/commitdiff
Remove unused method in ArgumentProxy
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 2 Dec 2016 15:19:02 +0000 (16:19 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 2 Dec 2016 15:19:02 +0000 (16:19 +0100)
Also reorder some methods.

src/mathed/MathMacro.cpp

index 104d1199139746806918d9939b98013f348a39e5..71654b4d1ce516509a9e05948983a2362036e6f4 100644 (file)
@@ -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:
        ///