]> git.lyx.org Git - lyx.git/commitdiff
Removed unused private variable
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 14 May 2018 21:03:50 +0000 (23:03 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 15 May 2018 21:13:59 +0000 (23:13 +0200)
Spotted by clang++ 6.

(cherry picked from commit c4075367fa6330cac075e94b61f8522fcd54f630)

src/mathed/InsetMathColor.cpp
src/mathed/InsetMathColor.h

index 6cb996013b13d10682c788733f0edba5d66ad9f7..d665734b5182893b7a0da3a58e609bc59c79df12 100644 (file)
@@ -29,14 +29,14 @@ using namespace lyx::support;
 namespace lyx {
 
 InsetMathColor::InsetMathColor(Buffer * buf, bool oldstyle, ColorCode color)
-       : InsetMathNest(buf, 1), w_(0), oldstyle_(oldstyle),
+       : InsetMathNest(buf, 1), oldstyle_(oldstyle),
          color_(from_utf8(lcolor.getLaTeXName(color)))
 {}
 
 
 InsetMathColor::InsetMathColor(Buffer * buf, bool oldstyle,
                docstring const & color)
-       : InsetMathNest(buf, 1), w_(0), oldstyle_(oldstyle), color_(color)
+       : InsetMathNest(buf, 1), oldstyle_(oldstyle), color_(color)
 {}
 
 
index 829c4654f4b1db755395cebe7d47561a68cc5bfd..08495b364d76a83b1683c8f5ffcfd8de54b51cf5 100644 (file)
@@ -49,8 +49,6 @@ public:
        InsetCode lyxCode() const { return MATH_COLOR_CODE; }
 private:
        virtual Inset * clone() const;
-       /// width of '[' in current font
-       mutable int w_;
        ///
        bool oldstyle_;
        /// Our color. Only valid LaTeX colors are allowed.